1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +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.
$doc = $this->domObj;
libxml_use_internal_errors(true);
// @$doc->loadHTML($html);
$html = mb_convert_encoding($html, 'HTML-ENTITIES', "UTF-8");
@$doc->loadHTML($html);
// $doc->encoding = 'UTF-8';