# 草稿标题中的HTML编码

**URL:** <https://meta.discourse.org/t/html-encoding-in-draft-titles/347029>\
**Category:** UX\
**Tags:** fixed\
**Created:** [2025 年1 月 14 日 10:03 UTC](https://meta.discourse.org/t/html-encoding-in-draft-titles/347029 "2025-01-14T10:03:24Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
发布日期： [2025 年1 月 14 日 10:03 UTC](https://meta.discourse.org/t/html-encoding-in-draft-titles/347029/1 "2025-01-14T10:03:24Z")

</div>

包含特殊字符（如 `'", &` 或表情符号）的草稿标题更难阅读。

重现步骤：

1. 创建一个新的主题草稿，并将以下文本粘贴到标题字段中：  
`Drafts don't like "special" characters like & in titles`
2. 在正文中添加一些文本，以便保存草稿。
3. 导航到 `my/activity/drafts`（例如，通过侧边栏中的“我的草稿”链接）。
4. 观察到标题显示为：  
`Drafts don&#x27;t like &quot;special&quot; characters like &amp; in titles`  
而不是预期的：  
`Drafts don't like "special" characters like & in titles`。

 ![Screenshot_20250114_101819_Firefox](https://global.discourse-cdn.com/meta/original/4X/6/3/f/63fba22b76139cbb93fd2f8986e6204c4dce645d.jpeg)

这也影响回复的草稿。当您回复 [🇩🇪 Fehler in der Deutschen Übersetzung? Hier melden! - #101 by Moin](https://meta.discourse.org/t/de-fehler-in-der-deutschen-ubersetzung-hier-melden/47320/101?silent=true) 时，您会看到：

 ![Screenshot_20250114_094941_Firefox](https://global.discourse-cdn.com/meta/original/4X/4/2/7/427480c1225e97db3af067ab1d78ef674add5d44.jpeg)

---

_[View the full topic](https://meta.discourse.org/t/html-encoding-in-draft-titles/347029)._
