开发者

RSS Feed sudden error

开发者 https://www.devze.com 2023-01-06 03:47 出处:网络
I\'ve had these RSS feeds running for some time and have just now run into an issue on one of them. http://www.gamer-source.com/feed/news.xml (doesn\'t work)

I've had these RSS feeds running for some time and have just now run into an issue on one of them.

http://www.gamer-source.com/feed/news.xml (doesn't work)

and

http://www.starcraft-source.com/feed/news.xml (works)

Chrome is throwing the error...

This page contains the following errors:

error on line 20 at column 63: EntityRef: expecting ';'

Below is a rendering of the pag开发者_高级运维e up to the first error.

I've checked it out and can't find any issues with the content there.


<link>http://www.gamer-source.com/index.php?cmd=article&sec=news&act=view&id=581</link>

The "&" symbols are your problem. Replace like this:

<link>http://www.gamer-source.com/index.php?cmd=article&amp;sec=news&amp;act=view&amp;id=581</link>

throughout the XML.


The problems comes from the URLs:

http://www.gamer-source.com/index.php?cmd=article&sec=news&act=view&id=581

Those un-encoded ampersands '&' are being interpreted as the beginning of entity references:

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.gamer-source.com%2Ffeed%2Fnews.xml&charset=%28detect+automatically%29&doctype=Inline&group=0

0

精彩评论

暂无评论...
验证码 换一张
取 消