From 467ca9d0deea511700656d4433dbd915b137b748 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Tue, 1 Mar 2022 16:03:44 +0100 Subject: Specific HTML load for lib_phpQuery.php (#4243) And reverts a less appropriate workaround for the same thing in https://github.com/FreshRSS/FreshRSS/pull/4220 Avoids XML errors when believing that a document might be XML/XHTML. --- app/Models/Entry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/Models/Entry.php b/app/Models/Entry.php index ab88d777a..243d557ac 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -484,7 +484,7 @@ class FreshRSS_Entry extends Minz_Model { /** * @var phpQueryObject @doc */ - $doc = phpQuery::newDocument($html); + $doc = phpQuery::newDocumentHTML($html); if ($maxRedirs > 0) { //Follow any HTML redirection -- cgit v1.2.3