diff --git a/app/vendor/ParsedownExtra.php b/app/vendor/ParsedownExtra.php index 2adcbaa..95ef854 100644 --- a/app/vendor/ParsedownExtra.php +++ b/app/vendor/ParsedownExtra.php @@ -625,7 +625,7 @@ class ParsedownExtra extends Parsedown $DOMDocument = new DOMDocument; # http://stackoverflow.com/q/11309194/200145 - $elementMarkup = mb_convert_encoding($elementMarkup, 'HTML-ENTITIES', 'UTF-8'); + $elementMarkup = mb_encode_numericentity($elementMarkup, [0x80, 0x10FFFF, 0, ~0], 'UTF-8'); # http://stackoverflow.com/q/4879946/200145 $DOMDocument->loadHTML($elementMarkup); @@ -683,4 +683,4 @@ class ParsedownExtra extends Parsedown # protected $regexAttribute = '(?:[#.][-\w]+[ ]*)'; -} \ No newline at end of file +}