mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 03:19:56 +01:00
Convert first with Api\Translation::convert, then decode with html_entity_decode()
This commit is contained in:
parent
eba66e8726
commit
1f2080e22c
@ -404,6 +404,7 @@ class Html
|
|||||||
$_html = str_replace('#greater#than#','>',$_html);
|
$_html = str_replace('#greater#than#','>',$_html);
|
||||||
//error_log(__METHOD__.__LINE__.' Charset:'.$displayCharset.' -> '.$_html);
|
//error_log(__METHOD__.__LINE__.' Charset:'.$displayCharset.' -> '.$_html);
|
||||||
$_html = Api\Translation::convert($_html, $displayCharset, 'utf-8');
|
$_html = Api\Translation::convert($_html, $displayCharset, 'utf-8');
|
||||||
|
$_html = html_entity_decode($_html, ENT_COMPAT, 'utf-8');
|
||||||
//error_log(__METHOD__.__LINE__.' Charset:'.$displayCharset.' After html_entity_decode: -> '.$_html);
|
//error_log(__METHOD__.__LINE__.' Charset:'.$displayCharset.' After html_entity_decode: -> '.$_html);
|
||||||
//self::replaceEmailAdresses($_html);
|
//self::replaceEmailAdresses($_html);
|
||||||
$pos = strpos($_html, 'blockquote');
|
$pos = strpos($_html, 'blockquote');
|
||||||
|
Loading…
Reference in New Issue
Block a user