# Expanding onebox with linked Discourse article causes HTML characters to be displayed

**URL:** https://meta.discourse.org/t/expanding-onebox-with-linked-discourse-article-causes-html-characters-to-be-displayed/32358
**Category:** Bug
**Created:** [2015 年 8 月 21 日午前 4:14 UTC](https://meta.discourse.org/t/expanding-onebox-with-linked-discourse-article-causes-html-characters-to-be-displayed/32358 "2015-08-21T04:14:59Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![wesochuck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wesochuck/32/108706_2.png) [@wesochuck](https://meta.discourse.org/u/wesochuck)
#### Post date: [2015 年 8 月 21 日午前 4:14 UTC](https://meta.discourse.org/t/expanding-onebox-with-linked-discourse-article-causes-html-characters-to-be-displayed/32358/1 "2015-08-21T04:14:59Z")

</div>

Just repod this on [try.discourse.org](http://try.discourse.org)

1. Create an topic that has a \> (greater than) symbol in the first few lines of text
2. Create another topic and link the original topic in step 1
3. This will onebox the original topic in topic #2
4. Click the down arrow in topic #2 to expand the article

The first \> will get rendered as a `&gt;` the same thing will happen if you used a \< (less than symbol).

[](https://dl.dropboxusercontent.com/s/uj85bos00w66aok/Screenshot%202015-08-21%2000.11.52.png?dl=0)

Expanded the article by clicking the down arrow (notice the `&gt;` after the word One):

[](https://dl.dropboxusercontent.com/s/mbnuxu6wwzpoyxu/Screenshot%202015-08-21%2000.12.03.png?dl=0)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2015 年 8 月 21 日午前 5:37 UTC](https://meta.discourse.org/t/expanding-onebox-with-linked-discourse-article-causes-html-characters-to-be-displayed/32358/2 "2015-08-21T05:37:30Z")

</div>

What’s up with these screenshots?

---

<div class="post-metadata">

### Author: ![purldator](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@purldator](https://meta.discourse.org/u/purldator)
#### Post date: [2015 年 8 月 21 日午前 6:20 UTC](https://meta.discourse.org/t/expanding-onebox-with-linked-discourse-article-causes-html-characters-to-be-displayed/32358/3 "2015-08-21T06:20:56Z")

</div>

Glad I’m not the only one here. Dimmed into the background? Same from my view too.

---

<div class="post-metadata">

### Author: ![wesochuck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wesochuck/32/108706_2.png) [@wesochuck](https://meta.discourse.org/u/wesochuck)
#### Post date: [2015 年 8 月 21 日午後 1:17 UTC](https://meta.discourse.org/t/expanding-onebox-with-linked-discourse-article-causes-html-characters-to-be-displayed/32358/4 "2015-08-21T13:17:19Z")

</div>

Sorry I can retake if needed. That’s my 1am F.lux plus background dimming program I use when I can’t get to sleep.

Do you need me to repo again on try?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2015 年 8 月 22 日午前 8:45 UTC](https://meta.discourse.org/t/expanding-onebox-with-linked-discourse-article-causes-html-characters-to-be-displayed/32358/5 "2015-08-22T08:45:19Z")

</div>

Yeah please 😄😉

---

<div class="post-metadata">

### Author: ![wesochuck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wesochuck/32/108706_2.png) [@wesochuck](https://meta.discourse.org/u/wesochuck)
#### Post date: [2015 年 8 月 24 日午前 1:11 UTC](https://meta.discourse.org/t/expanding-onebox-with-linked-discourse-article-causes-html-characters-to-be-displayed/32358/6 "2015-08-24T01:11:11Z")

</div>

Enjoy the f.lux free versions:

[](https://dl.dropboxusercontent.com/s/rky5cz0b0rr7x4m/Screenshot%202015-08-23%2021.10.19.png?dl=0)

[](https://dl.dropboxusercontent.com/s/2kkctmslz6rsqo9/Screenshot%202015-08-23%2021.10.35.png?dl=0)

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [2015 年 8 月 24 日午後 8:58 UTC](https://meta.discourse.org/t/expanding-onebox-with-linked-discourse-article-causes-html-characters-to-be-displayed/32358/7 "2015-08-24T20:58:55Z")

</div>

Here’s a fix:

[https://github.com/discourse/discourse/commit/9c882795c3197542b1ec669c327f5cac77e99a68](https://github.com/discourse/discourse/commit/9c882795c3197542b1ec669c327f5cac77e99a68)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2015 年 8 月 24 日午後 10:52 UTC](https://meta.discourse.org/t/expanding-onebox-with-linked-discourse-article-causes-html-characters-to-be-displayed/32358/8 "2015-08-24T22:52:43Z")

</div>


