سؤال

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