mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Propper fix for #1362
Should work now with both latin and non latin characters
This commit is contained in:
@@ -4141,7 +4141,9 @@ 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);
|
// @$doc->loadHTML($html);
|
||||||
|
$html = mb_convert_encoding($html, 'HTML-ENTITIES', "UTF-8");
|
||||||
|
@$doc->loadHTML($html);
|
||||||
// $doc->encoding = 'UTF-8';
|
// $doc->encoding = 'UTF-8';
|
||||||
|
|
||||||
// $doc->resolveExternals = true;
|
// $doc->resolveExternals = true;
|
||||||
|
Reference in New Issue
Block a user