summaryrefslogtreecommitdiff
path: root/it_html.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_html.class')
-rw-r--r--it_html.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_html.class b/it_html.class
index e9c1c67..e3053b6 100644
--- a/it_html.class
+++ b/it_html.class
@@ -432,7 +432,7 @@ static function sanitize($html)
static function entity_decode($string)
{
$charset = $GLOBALS['it_html']->p['charset'];
- $string = preg_replace('/&#(8217|65533);/', "'", html_entity_decode($string, ENT_COMPAT, $charset));
+ $string = preg_replace('/&#(8217|65533);/', "'", html_entity_decode($string, ENT_QUOTES | ENT_HTML5, $charset));
$string = preg_replace('/&#[^;]*;/i', " ", $string); # remove remaining illegal numeric entities, e.g. 0x80-0x9f
return self::_cleanup($string, $charset);