Skip to content

Escape HTML

Ilya edited this page Jan 18, 2017 · 1 revision

It's simple, you write Aromatic inserts

Sometimes you may have html in data

example :

let data = {
one : '<p>one string</p>',
two : '<h2>two string</h2>'
}

if you want to html escape, it is necessary in the line

<div id="test">
<div>{{ !!one!! }}</div>
<div>{{ !!two!! }}</div>
</div>
Clone this wiki locally