mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-22 20:27:10 +00:00
domdocument: remove old meta charset unicode hacks, replace with shorter xml preamble utf8 hack (on loadhtml where it makes sense)
af_readability: better (?) charset hack for non-unicode pages
This commit is contained in:
@@ -155,7 +155,7 @@ class Af_Zz_ImgProxy extends Plugin {
|
||||
$proxy_all = $this->host->get($this, "proxy_all");
|
||||
|
||||
$doc = new DOMDocument();
|
||||
if (@$doc->loadHTML($article["content"])) {
|
||||
if (@$doc->loadHTML('<?xml encoding="UTF-8">' . $article["content"])) {
|
||||
$xpath = new DOMXPath($doc);
|
||||
$imgs = $xpath->query("//img[@src]");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user