Skip to content

Commit

Permalink
Corrects erusev#173 with fix from Lukas238
Browse files Browse the repository at this point in the history
  • Loading branch information
cskeeters committed Oct 11, 2024
1 parent 91ac3ff commit dd4a184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ParsedownExtra.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ protected function processTag($elementMarkup) # recursive
$DOMDocument = new DOMDocument;

# http://stackoverflow.com/q/11309194/200145
$elementMarkup = mb_convert_encoding($elementMarkup, 'HTML-ENTITIES', 'UTF-8');
$elementMarkup = htmlspecialchars_decode(iconv('UTF-8', 'ISO-8859-1', htmlentities($elementMarkup, ENT_COMPAT, 'UTF-8')), ENT_QUOTES);

# http://stackoverflow.com/q/4879946/200145
$DOMDocument->loadHTML($elementMarkup);
Expand Down

0 comments on commit dd4a184

Please sign in to comment.