简体   繁体   中英

How to get proper title from RSS feed?

I have a feed: https://www.facebook.com/feeds/page.php?format=rss20&id=172360026392

With a title for example:

No nie do wiary! Maraton Warszawski & #x2013; ki

The space between & and # is intentional, in rss there is no space. How to convert the string to pure UTF-8 so that & #x2013; will become "-" character?

使用html_entity_decode函数: http ://www.php.net/manual/zh/function.html-entity-decode.php

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