警告:DOMDocument :: loadHTML():htmlParseEntityRef:expecting';'在实体

时间:2017-03-06 17:01:33

标签: php xml parsing syntax domdocument

我们正在使用文件来创建图像站点地图

我在image-sitemap.xml文件中出现了这个错误

XML Parsing Error: syntax error
Location: http://netyab.net/sitemap-image.xml
Line Number 2, Column 1:Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 24 in /home2/netyabne/domains/netyab.net/public_html/base/sitemap/image.php on line 25
^

和我们的来源

Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 24 in /home2/netyabne/domains/netyab.net/public_html/base/sitemap/image.php on line 25

Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 133 in /home2/netyabne/domains/netyab.net/public_html/base/sitemap/image.php on line 25

怎么解决呢?

http://netyab.net/sitemap-image.xml

image.php文件中的第24行和第25行

        $doc = new DOMDocument();
    $doc->loadHTML($result ['content']);

0 个答案:

没有答案