<%= CODE %>

  • function
can.ejs.tags.escaped  

<%= CODE %>

Runs JS Code and writes the escaped result into the result of the template. This is useful for when you want to show code in your page.

The following results in the user seeing "my favorite element is <blink>BLINK<blink>" and not BLINK.

 <div>my favorite element is <%= '<blink>BLINK</blink>' %>.</div>