简体   繁体   中英

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 (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

将您的内容包装在<[CDATA []]>标记中并使用UTF-8

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM