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

Just repod this on 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).

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

2 Likes

What’s up with these screenshots?

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

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?

2 Likes

Yeah please :smile: :wink:

Enjoy the f.lux free versions:

Here’s a fix:

https://github.com/discourse/discourse/commit/9c882795c3197542b1ec669c327f5cac77e99a68

4 Likes