Raw output Handlebars.js
It's not that kind of protip, mostly a reminder to myself.
Having an HTML string within a context object that is passed to a Handlebars template and getting the raw HTML output use the triple {{{ }}} brackets
<div>{{{myOwnHTMLContent}}}</div>
And all tags not interpreted by the browser are gone.
Written by Daniel Schmidt
Related protips
2 Responses
Give 5, bro! Tnx!
over 1 year ago
·
Thanks :)
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Handlebars.js
Authors
dsci
21.13K
Related Tags
#handlebars.js
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#