1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 15:16:30 +02:00

Merge pull request #1385 from Serios/patch-4

Fixes #1362 - encoding in cleanHtml() method.
This commit is contained in:
Cameron
2016-02-25 19:03:10 -08:00

View File

@@ -4151,6 +4151,8 @@ return;
// libxml_use_internal_errors(true); // hides errors. // libxml_use_internal_errors(true); // hides errors.
$doc = $this->domObj; $doc = $this->domObj;
libxml_use_internal_errors(true); libxml_use_internal_errors(true);
// @$doc->loadHTML($html);
$html = mb_convert_encoding($html, 'HTML-ENTITIES', "UTF-8");
@$doc->loadHTML($html); @$doc->loadHTML($html);
// $doc->encoding = 'UTF-8'; // $doc->encoding = 'UTF-8';