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

Fix for non Latin characters in textareas

Fixing and issue with non Latin characters breaking in textareas if html tags are used
This commit is contained in:
Serios
2016-02-15 23:53:06 +02:00
parent 9f96a70e76
commit c6bfc97dc7

View File

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