Merge branch 'fix-sanitizer-new-libxml2' into 'master'

Fix sanitizer with libxml2 >= 2.12.0

See merge request tt-rss/tt-rss!12
This commit is contained in:
Andrew Dolgov 2023-12-01 12:26:41 +00:00
commit ce9847d317
1 changed files with 1 additions and 1 deletions

View File

@ -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('<?xml encoding="UTF-8">' . $res); $doc->loadHTML('<meta charset="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?