Revert "Fix sanitizer with libxml2 >= 2.12.0"

This reverts commit d4da4dcc32.
This commit is contained in:
Andrew Dolgov 2023-12-17 22:42:52 +03:00
parent 14ad8b21d5
commit 67012f9dac
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class Sanitizer {
$res = trim($str); if (!$res) return '';
$doc = new DOMDocument();
$doc->loadHTML('<meta charset="UTF-8">' . $res);
$doc->loadHTML('<?xml encoding="UTF-8">' . $res);
$xpath = new DOMXPath($doc);
// is it a good idea to possibly rewrite urls to our own prefix?