html 代码出现在 RSS feed 应用程序的文本视图中

发布于 2024-10-07 02:52:40 字数 115 浏览 0 评论 0原文

我有一个 RSS feed 应用程序。除了我的“描述”textView 中的事实之外,一切正常 (RSS 的详细信息)文本出现在 html 中!

对正在发生的事情有什么想法吗?

谢谢!

i got an rss feed app. All is working ok apart from the fact that in my "description" textView
(detail of the rss) the text appears in html!

any ideas in what is going on?

thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

九局 2024-10-14 02:52:40

我找到了使用 wbview 和 loadHTMLString 的解决方案。

不过我想问一下这两个 RSS 提要之间有什么区别:

http ://newsrss.bbc.co.uk/rss/sportonline_world_edition/front_page/rss.xml

例如:

http://feeds.feedburner.com/pitsirikos/uPfN

在第一个中,我可以让文本视图显示应该出现的内容,而在第二个中,我可以在文本视图中获取 html 代码!

我的代码在这两种情况下保持不变......

i have found the solution using a wbview with loadHTMLString.

however i would like to ask what is the difference between these two rss feeds:

http://newsrss.bbc.co.uk/rss/sportonline_world_edition/front_page/rss.xml

and this for example:

http://feeds.feedburner.com/pitsirikos/uPfN

in the first one i can get the textview to display the contents as they should appear while in the second one i get html code in the textview!

my code remains the same in both cases...

饮湿 2024-10-14 02:52:40

它们之间的主要区别在于后者包含前缀标签
例如和
您使用 NSXMLParser 还是 libxml2 ?您正在使用元素名称执行 strcmp 吗?

The key difference between them is that the latter contains prefix tags
e.g. and
Do you use NSXMLParser or libxml2 ? are you doing a strcmp with the element name ?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文