w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Ember js, inject html tags in a template and render them as html

Ok, sorry... By posting the question I realized it could be an handlebars question.

The answer was in handlebars documentation :

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

So My template has to be :

<script type="text/x-handlebars"
data-template-name='myTemplate'>
  <h1>{{name}}</h1>
  <div>{{{content}}}</div>
</script>




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.