simplify encoding of special characters

This commit is contained in:
Emanuil Rusev 2013-11-22 21:57:21 +02:00
parent 800aac5b56
commit 28064a63b3
1 changed files with 1 additions and 1 deletions

View File

@ -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);