This jade:

h1 a < b

Produces this HTML:

<h1>a < b</h1>

How can I get it to automatically escape the <? (i.e. not typing in &lt; myself)

<h1>a &lt; b</h1>
有帮助吗?

解决方案

this h1 a < b is a shortcut for h1!= "a < b"

just use this here:

h1= "a < b"
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top