diff --git a/xExtension-YouTube/README.md b/xExtension-YouTube/README.md index 8be79fc7..dbc55633 100644 --- a/xExtension-YouTube/README.md +++ b/xExtension-YouTube/README.md @@ -23,6 +23,9 @@ With activated Youtube extension: ## Changelog +1.3.2: +- Fixed PHP warnings about HTML5 tags (such as `
`) when displaying the feed content + 1.3.1: - Refactored registerHook calls to use first class callable syntax diff --git a/xExtension-YouTube/extension.php b/xExtension-YouTube/extension.php index 277f1895..77872725 100644 --- a/xExtension-YouTube/extension.php +++ b/xExtension-YouTube/extension.php @@ -480,7 +480,7 @@ public function getHtml(FreshRSS_Entry $entry, string $url): string { $doc->recover = true; $doc->strictErrorChecking = false; - if ($doc->loadHTML('' . $entry->content())) { + if ($doc->loadHTML('' . $entry->content(), LIBXML_NONET | LIBXML_NOERROR | LIBXML_NOWARNING)) { $xpath = new DOMXPath($doc); /** @var DOMNodeList $titles */ diff --git a/xExtension-YouTube/metadata.json b/xExtension-YouTube/metadata.json index 46a1be78..fe2eb1aa 100644 --- a/xExtension-YouTube/metadata.json +++ b/xExtension-YouTube/metadata.json @@ -2,7 +2,7 @@ "name": "YouTube Video Feed", "author": "Kevin Papst, Inverle", "description": "Embed YouTube feeds inside article content.", - "version": "1.3.1", + "version": "1.3.2", "entrypoint": "YouTube", "type": "user" }