diff --git a/wire/modules/Textformatter/TextformatterMarkdownExtra/parsedown-extra/ParsedownExtra.php b/wire/modules/Textformatter/TextformatterMarkdownExtra/parsedown-extra/ParsedownExtra.php index 8cdb5d21..a57bad80 100755 --- a/wire/modules/Textformatter/TextformatterMarkdownExtra/parsedown-extra/ParsedownExtra.php +++ b/wire/modules/Textformatter/TextformatterMarkdownExtra/parsedown-extra/ParsedownExtra.php @@ -625,7 +625,10 @@ class ParsedownExtra extends Parsedown $DOMDocument = new DOMDocument; # http://stackoverflow.com/q/11309194/200145 - $elementMarkup = mb_convert_encoding($elementMarkup, 'HTML-ENTITIES', 'UTF-8'); + // $elementMarkup = mb_convert_encoding($elementMarkup, 'HTML-ENTITIES', 'UTF-8'); + // https://github.com/processwire/processwire-issues/issues/1801 + $elementMarkup = htmlentities($elementMarkup, ENT_NOQUOTES, 'UTF-8'); + $elementMarkup = htmlspecialchars_decode($elementMarkup, ENT_NOQUOTES); # http://stackoverflow.com/q/4879946/200145 $DOMDocument->loadHTML($elementMarkup);