1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 03:24:20 +02:00

Added more missing data from page vars. Precaution for if mb_convert_encoding() is missing. TinyMce member template added.

This commit is contained in:
Cameron
2016-02-29 22:01:58 -08:00
parent 0898cc272e
commit 881adeeeda
3 changed files with 35 additions and 4 deletions

View File

@@ -4157,8 +4157,11 @@ return;
$doc = $this->domObj;
libxml_use_internal_errors(true);
// @$doc->loadHTML($html);
$html = mb_convert_encoding($html, 'HTML-ENTITIES', "UTF-8");
@$doc->loadHTML($html);
if(function_exists('mb_convert_encoding'))
{
$html = mb_convert_encoding($html, 'HTML-ENTITIES', "UTF-8");
}
@$doc->loadHTML($html);
// $doc->encoding = 'UTF-8';
// $doc->resolveExternals = true;