From b15d40e8a353c206edf4aac04145b4b4c98bcd51 Mon Sep 17 00:00:00 2001 From: josephok Date: Fri, 22 Nov 2013 23:05:26 +0800 Subject: [PATCH] Update Parsedown.php Changes the htmlentities() to htmlspecialchars(). The htmlentities() has some problems encoding non-english words(like Chinese) --- Parsedown.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Parsedown.php b/Parsedown.php index a26acc0..155b634 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -634,7 +634,7 @@ class Parsedown foreach ($matches as $matches) { $element_text = $matches[1]; - $element_text = htmlentities($element_text, ENT_NOQUOTES); + $element_text = htmlspecialchars($element_text, ENT_NOQUOTES); # decodes escape sequences @@ -793,4 +793,4 @@ class Parsedown return $text; } -} \ No newline at end of file +}