File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff 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 ' ;
Original file line number Diff line number Diff 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 ' ;
You can’t perform that action at this time.
0 commit comments