# 使用标签图标时，标签描述中的链接未被转义

**URL:** <https://meta.discourse.org/t/links-in-tag-descriptions-aren-t-escaped-when-using-tag-icons/285942>\
**Category:** Bug\
**Tags:** tag-icons\
**Created:** [2023年十一月18日 16:58 UTC](https://meta.discourse.org/t/links-in-tag-descriptions-aren-t-escaped-when-using-tag-icons/285942 "2023-11-18T16:58:28Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [2023年十一月18日 16:43 UTC](https://meta.discourse.org/t/links-in-tag-descriptions-aren-t-escaped-when-using-tag-icons/285942/5 "2023-11-18T16:43:15Z")

</div>

它失败了，因为 Meta 使用 [Tag Icons](https://meta.discourse.org/t/tag-icons/109757)，并且需要更新以匹配核心。否则，链接将不会被转义。

我之前提交了一个 PR：

> <https://github.com/discourse/discourse-tag-icons/pull/15/files>
>
> Related core commits:
> \* \[#21391\](https://github.com/discourse/discourse/pull/21…391) - \[diff\](https://github.com/discourse/discourse/pull/21391/files#diff-f64eb8f03ac197dd71d469478344dbbb67943445e45133320234ad963f02de36)
> \* \[#22994\](https://github.com/discourse/discourse/pull/22994) - \[diff\](https://github.com/discourse/discourse/pull/22994/files#diff-f64eb8f03ac197dd71d469478344dbbb67943445e45133320234ad963f02de36)
> \* \[#23675\](https://github.com/discourse/discourse/pull/23675) - \[diff\](https://github.com/discourse/discourse/pull/23675/files#diff-f64eb8f03ac197dd71d469478344dbbb67943445e45133320234ad963f02de36)
> \* \[#23790\](https://github.com/discourse/discourse/pull/23790) - \[diff\](https://github.com/discourse/discourse/pull/23790/files#diff-f64eb8f03ac197dd71d469478344dbbb67943445e45133320234ad963f02de36)
> 
> This syncs the latest changes from \[\`render-tag.js\`\](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/lib/render-tag.js).

---

_[View the full topic](https://meta.discourse.org/t/links-in-tag-descriptions-aren-t-escaped-when-using-tag-icons/285942)._
