What does `{{{variable}}}` mean in handlebars?

MeV picture MeV · Jul 19, 2015 · Viewed 8k times · Source

What does triple curly braces mean in handlebars template syntax?

For example

{{{variable}}}

I cannot find any documentation.

Thanks

Answer

spenibus picture spenibus · Jul 19, 2015

Because it was originally designed to generate HTML, Handlebars escapes values returned by a {{expression}}. If you don't want Handlebars to escape a value, use the "triple-stash", {{{.

Source: https://handlebarsjs.com/guide/#html-escaping
Found via: https://github.com/wycats/handlebars-site/issues/28