mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Update Parsedown.php
Changes the htmlentities() to htmlspecialchars(). The htmlentities() has some problems encoding non-english words(like Chinese)
This commit is contained in:
parent
ddc5b7e2dd
commit
b15d40e8a3
@ -634,7 +634,7 @@ class Parsedown
|
|||||||
foreach ($matches as $matches)
|
foreach ($matches as $matches)
|
||||||
{
|
{
|
||||||
$element_text = $matches[1];
|
$element_text = $matches[1];
|
||||||
$element_text = htmlentities($element_text, ENT_NOQUOTES);
|
$element_text = htmlspecialchars($element_text, ENT_NOQUOTES);
|
||||||
|
|
||||||
# decodes escape sequences
|
# decodes escape sequences
|
||||||
|
|
||||||
@ -793,4 +793,4 @@ class Parsedown
|
|||||||
|
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user