From 5f79069a372e6e817c9989160b6f533ccf92b5a5 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Mon, 5 Dec 2016 22:01:57 +1100 Subject: [PATCH] Fix return value of Formatter.toString() when type is text Signed-off-by: Madhura Jayaratne --- CHANGELOG.md | 2 ++ src/Utils/Formatter.php | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf88edb55..b9357106c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## [Unreleased] +* Fix return value of Formatter.toString() when type is text + ## [3.4.14] - 2016-11-30 * Improved parsing of UNION queries. diff --git a/src/Utils/Formatter.php b/src/Utils/Formatter.php index bcf548626..1d1944059 100644 --- a/src/Utils/Formatter.php +++ b/src/Utils/Formatter.php @@ -487,6 +487,7 @@ public function toString($token) } elseif ($this->options['type'] === 'html') { return htmlspecialchars($text, ENT_NOQUOTES); } + return $text; } /**