Skip to content

Commit

Permalink
Replaced html_entity_decode with Api\Translation::convert
Browse files Browse the repository at this point in the history
  • Loading branch information
asig2016 committed Apr 1, 2019
1 parent be212f9 commit 5c3a4fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/Mail/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ static function convertHTMLToText($_html,$displayCharset=false,$stripcrl=false,$
$_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');
Expand Down

0 comments on commit 5c3a4fe

Please sign in to comment.