开发者

Some help with an RSS feed

I need some help with an RSS feed I'm working on. This is the code of an item:

        <item>
            <title>Team Fortres开发者_运维问答s 2</title>
            <link>http://wormgineers.com/index.php?page=File&id=228</link>
            <description><[CDATA[Map with characters from Team Fortress 2.]]></description>
            <guid>228</guid>
        </item>

(Also, I'm not sure if I'm doing the CDATA thing right.)

Apparantly, the feed fails because this is wrong:

Some help with an RSS feed


The problem is that & is starting an entity and you're not closing it with an ;. Try the good old &amp; if you want a literal &.

Also, you are doing "CDATA" wrong.

<![CDATA[Text]]>

is the correct syntax.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜