开发者

PHP: Parse text for RSS-feed?

开发者 https://www.devze.com 2022-12-21 13:25 出处:网络
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.

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

精彩评论

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