From 6abf8b24ea9c5c427e4576e0a44e7c67e59fca96 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 6 Jul 2016 12:11:23 +0200 Subject: [PATCH] Simulate proper HTML to prevent issues --- .../lib/system/html/node/AbstractHtmlNodeProcessor.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/html/node/AbstractHtmlNodeProcessor.class.php b/wcfsetup/install/files/lib/system/html/node/AbstractHtmlNodeProcessor.class.php index 4c473aa64b..fa254f03de 100644 --- a/wcfsetup/install/files/lib/system/html/node/AbstractHtmlNodeProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/node/AbstractHtmlNodeProcessor.class.php @@ -60,7 +60,7 @@ abstract class AbstractHtmlNodeProcessor implements IHtmlNodeProcessor { // We're also injecting a bogus meta tag that magically enables DOMDocument // to handle UTF-8 properly. This avoids encoding non-ASCII characters as it // would conflict with already existing entities when reverting them. - @$this->document->loadHTML('' . $html); + @$this->document->loadHTML('' . $html . ''); $this->nodeData = []; } -- 2.20.1