diff --git a/Parsedown.php b/Parsedown.php index a26acc0..155b634 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -634,7 +634,7 @@ class Parsedown foreach ($matches as $matches) { $element_text = $matches[1]; - $element_text = htmlentities($element_text, ENT_NOQUOTES); + $element_text = htmlspecialchars($element_text, ENT_NOQUOTES); # decodes escape sequences @@ -793,4 +793,4 @@ class Parsedown return $text; } -} \ No newline at end of file +}