用于描述线索评论的联合格式?

发布于 2024-09-19 00:17:07 字数 24 浏览 1 评论 0原文

如何用Atom/RSS描述评论树?

How to describe comments tree with Atom/RSS?

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

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

发布评论

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

评论(2

黒涩兲箜 2024-09-26 00:17:08

有一个标准草案来扩展 Atom线程讨论,但不再活跃。这是一个带有评论的提要:

<feed xmlns="http://www.w3.org/2005/Atom"
       xmlns:thr="http://purl.org/syndication/thread/1.0">
   <id>http://www.example.org/myfeed</id>
   <title>My Example Feed</title>
   <updated>2005-07-28T12:00:00Z</updated>
   <link href="http://www.example.org/myfeed" />
   <author><name>James</name></author>
   <entry>
     <id>tag:example.org,2005:1</id>
     <title>My original entry</title>
     <updated>2006-03-01T12:12:12Z</updated>
     <link
       type="application/xhtml+xml"
       href="http://www.example.org/entries/1" />
     <summary>This is my original entry</summary>
   </entry>
   <entry>
     <id>tag:example.org,2005:1,1</id>
     <title>A response to the original</title>
     <updated>2006-03-01T12:12:12Z</updated>
     <link href="http://www.example.org/entries/1/1" />
     <thr:in-reply-to
       ref="tag:example.org,2005:1"
       type="application/xhtml+xml"
       href="http://www.example.org/entries/1"/>
     <summary>This is a response to the original entry</summary>
   </entry>
</feed>

There's a draft standard to extend Atom with threaded discussions, but that's no longer active. This is a feed with comments:

<feed xmlns="http://www.w3.org/2005/Atom"
       xmlns:thr="http://purl.org/syndication/thread/1.0">
   <id>http://www.example.org/myfeed</id>
   <title>My Example Feed</title>
   <updated>2005-07-28T12:00:00Z</updated>
   <link href="http://www.example.org/myfeed" />
   <author><name>James</name></author>
   <entry>
     <id>tag:example.org,2005:1</id>
     <title>My original entry</title>
     <updated>2006-03-01T12:12:12Z</updated>
     <link
       type="application/xhtml+xml"
       href="http://www.example.org/entries/1" />
     <summary>This is my original entry</summary>
   </entry>
   <entry>
     <id>tag:example.org,2005:1,1</id>
     <title>A response to the original</title>
     <updated>2006-03-01T12:12:12Z</updated>
     <link href="http://www.example.org/entries/1/1" />
     <thr:in-reply-to
       ref="tag:example.org,2005:1"
       type="application/xhtml+xml"
       href="http://www.example.org/entries/1"/>
     <summary>This is a response to the original entry</summary>
   </entry>
</feed>
眼眸里的那抹悲凉 2024-09-26 00:17:08

您可以在 RSS 中使用 html,但是 <和>必须呈现为 <和>

<description>
...
<!-- comments -->
<ul>
  <li>comment1</li>
  <li>comment2</li>
  <li>comment3</li>
  <li>comment4</li>
<ul>
</description>

You can use html in RSS but < and > must be present as < and >

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