Skip to content

Commit 9183de8

Browse files
author
Adam McCann
committed
Reapplied changes
1 parent 56ba648 commit 9183de8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +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-
// $this->text = (new HTMLPurifier($config))->purify($this->text);
116+
$config = HTMLPurifier_Config::createDefault();
117+
$this->text = (new HTMLPurifier($config))->purify($this->text);
118118

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

0 commit comments

Comments
 (0)