RSS 提要中的图像 [英] Images in RSS feed

查看:44
本文介绍了RSS 提要中的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我在 RSS 提要中看到图像时,它们都嵌入在 CDATA 中,而不是被标签包围.

Whenever I see images in an RSS feed, they are embedded in CDATA, rather than surrounded by tags.

在我的提要中,我希望图像不这样做就显示出来.

In my feed, I would like the images to show up without doing that.

无论是在浏览器中,还是在提要阅读器 (Bloglines) 中或通过 FeedBurner,以下结构都不会显示图像,尽管它是有效的 RSS.有没有人有这方面的经验?

Whether in the browser, or a feed reader (Bloglines) or through FeedBurner, the following structure does not show images, although it is valid RSS. Does anyone have experience with this?

<item>
<category>Viewbook</category>
<title>Widget</title>
<description>Learn more about our widgets.</description>
<link>http://www.widget.com/Default.aspx</link>
<image>
<url>http://www.widget.com/images/thumb.gif</url>
<title>Widget</title>
<link>http://www.widget.com/Default.aspx</link>
<description>Learn more about our widgets.</description>
</image>
</item> 

推荐答案

On Colonol Sponsz 的提示,我研究了:

On Colonol Sponsz' hint, I researched:

项目没有图像标签,只有频道.所以你必须通过 CDATA 标签来实现.

There's no image tag for items, only for the channel. So you have to do it via the CDATA tag.

这篇关于RSS 提要中的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆