Images.php
authorAlan <alan@roojs.com>
Mon, 10 Jan 2022 06:45:44 +0000 (14:45 +0800)
committerAlan <alan@roojs.com>
Mon, 10 Jan 2022 06:45:44 +0000 (14:45 +0800)
Images.php

index 5cb8a02..81b62ee 100644 (file)
@@ -410,7 +410,7 @@ class Pman_Core_Images extends Pman
         
         libxml_use_internal_errors(true);
         $doc = new DOMDocument();
-        $doc->loadHTML($html);
+        $dom->loadHTML("<?xml encoding='utf-8'?> <div id='tmp_dom_wrapper'>{$html}</div>");
         $imgs = $doc->getElementsByTagName('img');