can
Version:
MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.
13 lines (7 loc) • 426 B
Markdown
@function can.ejs.tags.escaped <%= CODE %>
@parent can.ejs.tags 1
@signature `<%= 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>BLINK</blink>.
<div>my favorite element is <%= '<blink>BLINK</blink>' %>.</div>