I have a layout partial
partials/layout.hbs
<html>
<body>
<div class="content">
{{> content}}
</div>
</body>
</html>
and a message handlebars that uses this layout
message.hbs
{{#> layout}}
{{#*inline "content"}}
<b>{{ Data.Message }}</b>
{{/inline}}
{{/layout}}
With the default configuration all my html tags are getting escaped (both in the layout.hbs as well as in the inline content hbs). Why? How do I fix this?
I don't believe this is normal behaviour for handlebars.js
The only way to render this properly is to pass in NoEscape in the configuration, but this has the unwanted side-effect that my {{ Data.Message }} does not get sanitized and can also contain html.
I have a layout partial
partials/layout.hbs
and a message handlebars that uses this layout
message.hbs
With the default configuration all my html tags are getting escaped (both in the layout.hbs as well as in the inline content hbs). Why? How do I fix this?
I don't believe this is normal behaviour for handlebars.js
The only way to render this properly is to pass in
NoEscapein the configuration, but this has the unwanted side-effect that my {{ Data.Message }} does not get sanitized and can also contain html.