From c6bfc97dc7c667502100b4cab3cbc15841c68584 Mon Sep 17 00:00:00 2001 From: Serios Date: Mon, 15 Feb 2016 23:53:06 +0200 Subject: [PATCH] Fix for non Latin characters in textareas Fixing and issue with non Latin characters breaking in textareas if html tags are used --- e107_handlers/e_parse_class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index 8ab98c5f6..7fdc3919f 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -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;