Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does three {{{ }}} in mustache.js mean?

I am looking at mustache.js based template and the person has defined some variables as {{variable}} and sometimes {{{variable2}}}.

like image 369
user3630406 Avatar asked Dec 08 '14 19:12

user3630406


1 Answers

From the documentation:

All variables are HTML escaped by default. If you want to return unescaped HTML, use the triple mustache: {{{name}}}

like image 101
Felix Kling Avatar answered Oct 05 '22 22:10

Felix Kling