I have some text stored in a variable that contains some HTML. For example, a cat in a hat. However, when I show it in Jade, it appears with tags instead of formatting rendering. How can i fix this?
Code buffered with = is escaped by default for security, but you can use! = To output unscreened return values!
p!= aVarContainingHTML
Jade doc
The syntax you need is:
!{yourJsVariable}
if you use #{yourJsVariable} , it shows <>, but with !{} it is not.
#{yourJsVariable}
!{}