# 在 HTML 观看的单词替换中，不粘的类不一致

**URL:** <https://meta.discourse.org/t/classes-that-do-not-stick-in-html-watched-word-replacements-are-inconsistent/331030>\
**Category:** UX\
**Created:** [2024年十月15日 19:06 UTC](https://meta.discourse.org/t/classes-that-do-not-stick-in-html-watched-word-replacements-are-inconsistent/331030 "2024-10-15T19:06:59Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)\
**Post date:** [2024年十月15日 19:06 UTC](https://meta.discourse.org/t/classes-that-do-not-stick-in-html-watched-word-replacements-are-inconsistent/331030/1 "2024-10-15T19:06:59Z")

</div>

在我们的论坛上，我们开玩笑地想把单词 `spam` 替换为 `@spam` 这个群组的 ping。但是，这不能作为替换项，它只是一个链接，没有我试图添加的类（监视的单词：`spam -\u003e \u003ca class=\"mention-group notify\" href=\"/groups/spam\"\u003e@spam\u003c/a\u003e` VS 实际替换的内容：`\u003ca href=\"/groups/spam\"\u003e@spam\u003c/a\u003e`）。这似乎非常不一致，因为同样的操作_可以_用于用户提及（例如：`fire -\u003e \u003ca class=\"mention\" href=\"/u/firepup650\"\u003e@firepup650\u003c/a\u003e`）。

---

_[View the full topic](https://meta.discourse.org/t/classes-that-do-not-stick-in-html-watched-word-replacements-are-inconsistent/331030)._
