# Onebox 在 URL 中对单引号进行编码导致链接失效

**URL:** <https://meta.discourse.org/t/onebox-encodes-single-quotes-in-url-breaking-the-link/115947>\
**Category:** Bug\
**Created:** [2019 年4 月 25 日 11:04 UTC](https://meta.discourse.org/t/onebox-encodes-single-quotes-in-url-breaking-the-link/115947 "2019-04-25T11:04:43Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

作者： ![Dannii](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dannii/32/129087_2.png) [@Dannii](https://meta.discourse.org/u/Dannii)\
发布日期： [2019 年4 月 26 日 14:59 UTC](https://meta.discourse.org/t/onebox-encodes-single-quotes-in-url-breaking-the-link/115947/7 "2019-04-26T14:59:36Z")

</div>

Entities are fine in the HTML. But something’s going wrong because it’s double encoding the quote.

```
<a href="https://doomwiki.org/wiki/Musical_inspirations_behind_Doom&amp;#39;s_music" target="_blank" rel="nofollow noopener">Musical inspirations behind Doom's music</a>

```

From the JSON.

---

_[View the full topic](https://meta.discourse.org/t/onebox-encodes-single-quotes-in-url-breaking-the-link/115947)._
