diff --git a/xExtension-ImageProxy/extension.php b/xExtension-ImageProxy/extension.php index 233bf5f..8ef62db 100644 --- a/xExtension-ImageProxy/extension.php +++ b/xExtension-ImageProxy/extension.php @@ -121,7 +121,7 @@ public static function swapUris(string $content): string { $doc = new DOMDocument(); libxml_use_internal_errors(true); // prevent tag soup errors from showing - $doc->loadHTML(mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8')); + $doc->loadHTML(mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8'), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); $imgs = $doc->getElementsByTagName('img'); foreach ($imgs as $img) { if ($img->hasAttribute('src')) {