summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-12-17 22:42:52 +0300
committerAndrew Dolgov <[email protected]>2023-12-17 22:42:52 +0300
commit67012f9dac7de22615b72be93fa360f53fefe3ec (patch)
tree55f296178c16fa73307817c3140c604325393aa0
parent14ad8b21d5e3a0d95be2523fa5777884b9393e87 (diff)
Revert "Fix sanitizer with libxml2 >= 2.12.0"
This reverts commit d4da4dcc321ca65fb2cd19877f395cc5f75933ab.
-rw-r--r--classes/Sanitizer.php2
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?