< 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 thedescription
element to provide an item’s full content along with a shorter summary. Under this approach,the complete text of the item is presented incontent:encoded
and the summary indescription
.07001
简言之,< description>是the summary,其余的帖子是< content:encoded>。
由于某些读者可能无法像预期的那样支持标签,因此您通常会在< description>中查看整个帖子。而不是两者的混合。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。