From: Alexander Ebert Date: Wed, 6 Jul 2016 10:11:23 +0000 (+0200) Subject: Simulate proper HTML to prevent issues X-Git-Tag: 3.0.0_Beta_1~1257 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6abf8b24ea9c5c427e4576e0a44e7c67e59fca96;p=GitHub%2FWoltLab%2FWCF.git Simulate proper HTML to prevent issues --- 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 = []; }