From 5c3a4fe6ce3ce92f8fdc03c6595ba38a386b913f Mon Sep 17 00:00:00 2001 From: Alexandros Sigalas Date: Sat, 23 Mar 2019 12:18:37 +0200 Subject: [PATCH] Replaced html_entity_decode with Api\Translation::convert --- api/src/Mail/Html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Mail/Html.php b/api/src/Mail/Html.php index cf3fe17c98..73edfdf0bd 100644 --- a/api/src/Mail/Html.php +++ b/api/src/Mail/Html.php @@ -403,7 +403,7 @@ class Html $_html = str_replace('#lower#than#','<',$_html); $_html = str_replace('#greater#than#','>',$_html); //error_log(__METHOD__.__LINE__.' Charset:'.$displayCharset.' -> '.$_html); - $_html = html_entity_decode($_html, ENT_COMPAT, $displayCharset); + $_html = Api\Translation::convert($_html, $displayCharset, 'utf-8'); //error_log(__METHOD__.__LINE__.' Charset:'.$displayCharset.' After html_entity_decode: -> '.$_html); //self::replaceEmailAdresses($_html); $pos = strpos($_html, 'blockquote');