diff --git a/Parsedown.php b/Parsedown.php index 155b634..8a93030 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -568,7 +568,7 @@ class Parsedown case 'code_block': case 'fenced_code_block': - $text = htmlentities($element['text'], ENT_NOQUOTES); + $text = htmlspecialchars($element['text'], ENT_NOQUOTES); strpos($text, "\x1A\\") !== FALSE and $text = strtr($text, $this->escape_sequence_map);