summaryrefslogtreecommitdiff
path: root/it_html.class
diff options
context:
space:
mode:
authorUrban Müller2025-02-26 18:04:24 +0100
committerUrban Müller2025-02-26 18:04:24 +0100
commit48291d1064105f40bd72e5ede776d94c25178e32 (patch)
treecb23c79b99dd81d5d6fd198e9f80e2168542e715 /it_html.class
parent8ba5903579c4aeb2e108f41cf9de9df3499f5c51 (diff)
downloaditools-48291d1064105f40bd72e5ede776d94c25178e32.tar.gz
itools-48291d1064105f40bd72e5ede776d94c25178e32.tar.bz2
itools-48291d1064105f40bd72e5ede776d94c25178e32.zip
decode all html entities including '
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);