diff options
author | Andrew Dolgov <[email protected]> | 2023-12-01 12:26:41 +0000 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-12-01 12:26:41 +0000 |
commit | ce9847d31750102bde8acca3ba5a037fdc9f5c12 (patch) | |
tree | 5667b4fb2b4dd42853fb638ef81e6fec10475c52 | |
parent | 2c7e000120b23487ed4090241a206f528e6b11f5 (diff) | |
parent | d4da4dcc321ca65fb2cd19877f395cc5f75933ab (diff) |
Merge branch 'fix-sanitizer-new-libxml2' into 'master'
Fix sanitizer with libxml2 >= 2.12.0
See merge request tt-rss/tt-rss!12
-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 a7bea9e5f..7af92f249 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('<?xml encoding="UTF-8">' . $res); + $doc->loadHTML('<meta charset="UTF-8">' . $res); $xpath = new DOMXPath($doc); // is it a good idea to possibly rewrite urls to our own prefix? |