HTML
Yarte HTML-escapes values returned by a {{ expression }}
.
If you don't want Yarte to escape a value, use the
"triple-stash", {{{
. For example having the following
struct:
#![allow(unused_variables)] fn main() { let t = CardTemplate { title: "All about <p> Tags", body: "<p>This is a post about <p> tags</p>" }; }
and the following template:
<div class="entry">
<h1>{{title}}</h1>
<div class="body">
{{{body}}}
</div>
</div>
will result in:
<div class="entry">
<h1>All About <p> Tags</h1>
<div class="body">
<p>This is a post about <p> tags</p>
</div>
</div>