简体   繁体   English

如何从RSS feed获得适当的标题?

[英]How to get proper title from RSS feed?

I have a feed: https://www.facebook.com/feeds/page.php?format=rss20&id=172360026392 我有一个供稿: https : //www.facebook.com/feeds/page.php?format=rss20&id=172360026392

With a title for example: 以标题为例:

No nie do wiary! 没有妮可想! Maraton Warszawski & #x2013; Maraton Warszawski– ki ki

The space between & and # is intentional, in rss there is no space. &和#之间的空格是有意的,在rss中没有空格。 How to convert the string to pure UTF-8 so that & #x2013; 如何将字符串转换为纯UTF-8,以便– will become "-" character? 会变成“-”字符?

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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