I've an ember property which includes html tags (<br />
, <strong>
, <p>
, <span>
, and similar stuff).
How can i tell ember not to escape this text? Is there any default Handlebars helper from ember, or need I to write my own?
You can show HTML tags as plain text in HTML on a website or webpage by replacing < with < or &60; and > with > or &62; on each HTML tag that you want to be visible. Ordinarily, HTML tags are not visible to the reader on the browser. They are there but you cannot see them.
An HTML tag is a piece of markup language used to indicate the beginning and end of an HTML element in an HTML document. As part of an HTML element, HTML tags help web browsers convert HTML documents into web pages.
From http://handlebarsjs.com/
Handlebars HTML-escapes values returned by a
{{expression}}
.
If you don't want Handlebars to escape a value, use the "triple-stash".
{{{expression}}}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With