# wp-discourse 帖子中多行 HTML 注释未隐藏

**URL:** <https://meta.discourse.org/t/multi-line-html-comments-not-hidden-on-post-from-wp-discourse/157177>\
**Category:** Product Support\
**Created:** [2020 年7 月 8 日 18:51 UTC](https://meta.discourse.org/t/multi-line-html-comments-not-hidden-on-post-from-wp-discourse/157177 "2020-07-08T18:51:28Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![orenwolf](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/orenwolf/32/119529_2.png) [@orenwolf](https://meta.discourse.org/u/orenwolf)\
发布日期： [2020 年7 月 8 日 18:51 UTC](https://meta.discourse.org/t/multi-line-html-comments-not-hidden-on-post-from-wp-discourse/157177/1 "2020-07-08T18:51:28Z")

</div>

你好，

我不确定这是 `wp-discourse` 特有的问题，还是 Discourse 本身的 HTML 解析器的问题，但看起来由 wp-discourse 生成的帖子中，多行 HTML 注释并未被隐藏。

我刚刚完成了 [chinwag.pluralistic.net](http://chinwag.pluralistic.net) 的设置，该站点基于 Cory Doctorow 在 [pluralistic.net](http://pluralistic.net) 上发布的文章。他的文章开头包含一些以 HTML 注释形式呈现的元数据。最近，这种格式从单行改为了多行。

你可以在以下帖子中看到这种情况：

> **[Pluralistic: 04 Jul 2020](https://chinwag.pluralistic.net/t/pluralistic-04-jul-2020/14)**
>
> Originally published at: https://pluralistic.net/2020/07/04/pluralistic-04-jul-2020/ Today's links What to the Slave Is the 4th of July: Scan of the original 1852 pamphlet. This day in history: 2010, 2015, 2019 Colophon: Recent...

原文中的单行注释已被移除：

> **[Pluralistic: 04 Jul 2020 – Pluralistic: Daily links from Cory Doctorow](https://pluralistic.net/2020/07/04/pluralistic-04-jul-2020/)**

然而，稍后文章中的多行注释却直接显示了出来：

> **[Pluralistic: 06 Jul 2020](https://chinwag.pluralistic.net/t/pluralistic-06-jul-2020/15)**
>
> Originally published at: Pluralistic: 06 Jul 2020 – Pluralistic: Daily links from Cory Doctorow

---

_[View the full topic](https://meta.discourse.org/t/multi-line-html-comments-not-hidden-on-post-from-wp-discourse/157177)._
