开发者

PHP: Parse text for RSS-feed?

First, I'm not looking a way to parse an RSS-feed. I am creating an rss-feed myself, but now I've got a problem.

I'm putting some text to description (obvisiously), but it gives me errors of some unallowed chars (开发者_C百科for example "&"). Is there a way to remove all these chars or should I parse every char manually?

Also, in my feed finnish chars (ä,å,ö) are showing some weird stuff instead of the char. Which charset should I use?

Martti Laine


Wrap your content in <[CDATA[]]> tags and use UTF-8

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜