Revert "Fix sanitizer with libxml2 >= 2.12.0"
This reverts commit d4da4dcc32
.
This commit is contained in:
parent
14ad8b21d5
commit
67012f9dac
|
@ -72,7 +72,7 @@ class Sanitizer {
|
||||||
$res = trim($str); if (!$res) return '';
|
$res = trim($str); if (!$res) return '';
|
||||||
|
|
||||||
$doc = new DOMDocument();
|
$doc = new DOMDocument();
|
||||||
$doc->loadHTML('<meta charset="UTF-8">' . $res);
|
$doc->loadHTML('<?xml encoding="UTF-8">' . $res);
|
||||||
$xpath = new DOMXPath($doc);
|
$xpath = new DOMXPath($doc);
|
||||||
|
|
||||||
// is it a good idea to possibly rewrite urls to our own prefix?
|
// is it a good idea to possibly rewrite urls to our own prefix?
|
||||||
|
|
Loading…
Reference in New Issue