Skip to content

Commit 95ba31b

Browse files
authored
Merge pull request #209 from leomoon/master
fixes unicode issue in parsedown-extra library by updatig the plugin …
2 parents c9b9542 + a043e75 commit 95ba31b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.62
1+
1.0.63

libraries/parsedown-extra-0.8.1/ParsedownExtra.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ protected function blockMarkupComplete($Block)
331331
#
332332
# Setext
333333

334-
protected function blockSetextHeader($Line, array $Block = null)
334+
protected function blockSetextHeader($Line, ?array $Block = null)
335335
{
336336
$Block = parent::blockSetextHeader($Line, $Block);
337337

@@ -625,8 +625,8 @@ protected function processTag($elementMarkup) # recursive
625625
$DOMDocument = new DOMDocument;
626626

627627
# http://stackoverflow.com/q/11309194/200145
628-
$elementMarkup = html_entity_decode($elementMarkup, ENT_COMPAT | ENT_HTML5, 'UTF-8');
629-
628+
$elementMarkup = mb_convert_encoding($elementMarkup, 'HTML-ENTITIES', 'UTF-8');
629+
630630
# http://stackoverflow.com/q/4879946/200145
631631
$DOMDocument->loadHTML($elementMarkup);
632632
$DOMDocument->removeChild($DOMDocument->doctype);

0 commit comments

Comments
 (0)