mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
simplify encoding of special characters
This commit is contained in:
parent
800aac5b56
commit
28064a63b3
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user