diff options
author | Andrew Dolgov <[email protected]> | 2023-12-17 22:42:52 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-12-17 22:42:52 +0300 |
commit | 67012f9dac7de22615b72be93fa360f53fefe3ec (patch) | |
tree | 55f296178c16fa73307817c3140c604325393aa0 /classes/Sanitizer.php | |
parent | 14ad8b21d5e3a0d95be2523fa5777884b9393e87 (diff) |
Revert "Fix sanitizer with libxml2 >= 2.12.0"
This reverts commit d4da4dcc321ca65fb2cd19877f395cc5f75933ab.
Diffstat (limited to 'classes/Sanitizer.php')
-rw-r--r-- | classes/Sanitizer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Sanitizer.php b/classes/Sanitizer.php index 7af92f249..a7bea9e5f 100644 --- a/classes/Sanitizer.php +++ b/classes/Sanitizer.php @@ -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? |