如何解析RSS提要避免html标记?

时间:2022-06-01 01:43:15

I am parsing the RSS feeds for my iphone app from popular news websites , i am using simple parser so , html tags are included in parsing data , but issue is that i want to show all information in my own way ,so can I extract text from these RSS Feeds.

我为我的iphone应用程序解析RSS提要从受欢迎的新闻网站,我用简单的解析器,html标记都包含在解析数据,但问题是,我想用我自己的方式显示所有信息,所以我可以从这些RSS提要中提取文本。

1 个解决方案

#1


0  

In this helpful tutorial:

在这个有用的教程:

http://www.raywenderlich.com/2636/how-to-make-a-simple-rss-reader-iphone-app-tutorial

http://www.raywenderlich.com/2636/how-to-make-a-simple-rss-reader-iphone-app-tutorial

used some files from MWFeedParser to determinate feed date (get NSDate from feed - very helpful).

使用一些来自MWFeedParser的文件来确定提要日期(从提要获取NSDate——非常有用)。

But there is even more! NSString+HTML.h (.m) class extension do exactly you want (and event more - check it!)

但还有更多!NSString + HTML。h (.m)类扩展完全符合您的要求(以及事件更多——检查它!)

You can get source code here: https://github.com/mwaterfall/MWFeedParser

您可以在这里获得源代码:https://github.com/mwaterfall/MWFeedParser

#1


0  

In this helpful tutorial:

在这个有用的教程:

http://www.raywenderlich.com/2636/how-to-make-a-simple-rss-reader-iphone-app-tutorial

http://www.raywenderlich.com/2636/how-to-make-a-simple-rss-reader-iphone-app-tutorial

used some files from MWFeedParser to determinate feed date (get NSDate from feed - very helpful).

使用一些来自MWFeedParser的文件来确定提要日期(从提要获取NSDate——非常有用)。

But there is even more! NSString+HTML.h (.m) class extension do exactly you want (and event more - check it!)

但还有更多!NSString + HTML。h (.m)类扩展完全符合您的要求(以及事件更多——检查它!)

You can get source code here: https://github.com/mwaterfall/MWFeedParser

您可以在这里获得源代码:https://github.com/mwaterfall/MWFeedParser