First time here? Check out the FAQ!
0

Removing HTML escapes from code
 

Consider the following tiniest snippet of code

a < b

I typed this using a simple "less than" sign but on my http://askbot.com based AskBot, that less than sign is rendered as an &lt; -i.e., it's been replaced by it's HTML escape code.

There clearly must be a way to avoid this - somewhere in the settings menus, as this doesn't happen on this site, but I can't seem to find it. Any advice?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Mark McClure's avatar
21
Mark McClure
asked 11 years ago, updated 11 years ago

Comments

see more comments

1 Answer

0

The goal of this is to remove the html injection in the posts. We have this hard-coded by design.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 11 years ago
link

Comments

see more comments