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


(Wes Osborn) #1

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):


(Sam Saffron) #2

What’s up with these screenshots?


(mountain) #3

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


(Wes Osborn) #4

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?


(Sam Saffron) #5

Yeah please :smile: :wink:


(Wes Osborn) #6

Enjoy the f.lux free versions:


(Robin Ward) #7

Here’s a fix:

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


Weird double escaping of < & > still showing up
(Jeff Atwood) #8