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:
commit
ce9847d317
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue