我们正在使用文件来创建图像站点地图
我在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']);