From 28064a63b37dcdf72d99163654e7903b73a2aef5 Mon Sep 17 00:00:00 2001 From: Emanuil Rusev Date: Fri, 22 Nov 2013 21:57:21 +0200 Subject: [PATCH] simplify encoding of special characters --- Parsedown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);