加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

xml – 描述和内容之间的区别:RSS2中的编码标签

发布时间:2020-12-16 08:04:21 所属栏目:百科 来源:网络整理
导读:description之间有什么区别,如果有的话。标签, content:encoded标签在RSS 2.0格式规格? 比另一个更重要吗? 我应该在我的饲料中使用,还是一个都足够了? description标签是用于发布的摘要,但仅限于纯文本。没有标记。 如果您转义标签或将内容包装在其
< description>之间有什么区别,如果有的话。标签,< content:encoded>标签在RSS 2.0格式规格?

比另一个更重要吗?

我应该在我的饲料中使用,还是一个都足够了?

< description>标签是用于发布的摘要,但仅限于纯文本。没有标记。

如果您转义标签或将内容包装在其中,您可以绕过它:

<![CDATA[ post body goes <strong>here</strong> ]>

但是you’re not really supposed to be doing that。

如果你想要标记,你应该使用< content:encoded>并使用<![CDATA [和]>包装在这里。

The content:encoded element can be used in conjunction with the description element to provide an item’s full content along with a shorter summary. Under this approach,the complete text of the item is presented in content:encoded and the summary in description.

07001

简言之,< description>是the summary,其余的帖子是< content:encoded>。

由于某些读者可能无法像预期的那样支持标签,因此您通常会在< description>中查看整个帖子。而不是两者的混合。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读