diff --git a/Parsedown.php b/Parsedown.php index ae0cbde..d9d5c3a 100644 --- a/Parsedown.php +++ b/Parsedown.php @@ -1918,7 +1918,7 @@ class Parsedown protected static function escape($text, $allowQuotes = false) { - return htmlspecialchars($text, $allowQuotes ? ENT_NOQUOTES : ENT_QUOTES, 'UTF-8'); + return htmlspecialchars($text, $allowQuotes ? ENT_NOQUOTES : ENT_QUOTES, 'UTF-8', false); } protected static function striAtStart($string, $needle) diff --git a/test/data/image_reference.html b/test/data/image_reference.html index 67fbd2c..71ee9be 100644 --- a/test/data/image_reference.html +++ b/test/data/image_reference.html @@ -1,2 +1,3 @@
![missing reference]
\ No newline at end of file +![missing reference]
+