I have an Express app using the default Jade view engine. When I try to render HTML as-is in a element, it gets rendered as actual DOM elements inst
Actually the OP asks for the escaping, not the unescaping. Which I ran into today.
Let assume, that you have varName variable with FooBar content.
Then this template will use the escaped value:
#foobar= varName
so it becomes:
<b>FooBar</b>
If you use the bang operator:
#foobar!= varName
jade won't escape it, so it becomes:
FooBar