Skip to content

Commit 56ba648

Browse files
author
Adam McCann
committed
Reverted changes temporarily
1 parent 73d0b45 commit 56ba648

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/Components/AbstractComponent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ protected function loadHtml($html)
5050
libxml_use_internal_errors(true); // for html5 tags
5151

5252
// purify HTML to convert HTML chars in text nodes etc.
53-
$config = HTMLPurifier_Config::createDefault();
53+
// $config = HTMLPurifier_Config::createDefault();
5454

55-
$html = (new HTMLPurifier($config))->purify($html);
55+
// $html = (new HTMLPurifier($config))->purify($html);
5656

5757
$tmpDoc->loadHTML('<?xml encoding="UTF-8"><html><body>' . $html . '</body></html>');
5858
$tmpDoc->encoding = 'UTF-8';

src/Components/Formats.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,8 @@ public function render()
113113
$tmpDoc = new DOMDocument;
114114

115115
// purify HTML to convert HTML chars in text nodes etc.
116-
$config = HTMLPurifier_Config::createDefault();
117-
118-
$this->text = (new HTMLPurifier($config))->purify($this->text);
116+
// $config = HTMLPurifier_Config::createDefault();
117+
// $this->text = (new HTMLPurifier($config))->purify($this->text);
119118

120119
$tmpDoc->loadHTML('<?xml encoding="UTF-8"><html><body>' . $this->text . '</body></html>');
121120
$tmpDoc->encoding = 'UTF-8';

0 commit comments

Comments
 (0)