显示包含 html 标签的属性 [英] Show property which includes html tags
本文介绍了显示包含 html 标签的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个包含 html 标签的 ember 属性(
、、
>、
和类似的东西).
I've an ember property which includes html tags (<br />
, <strong>
, <p>
, <span>
, and similar stuff).
我怎样才能告诉 ember 不要转义这个文本?ember 有没有默认的 Handlebars 助手,还是需要我自己编写?
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?
推荐答案
Handlebars HTML 转义 {{expression}}
返回的值.
如果您不希望 Handlebars 转义值,请使用triple-stash".
Handlebars HTML-escapes values returned by a
{{expression}}
.
If you don't want Handlebars to escape a value, use the "triple-stash".
{{{表达式}}}
这篇关于显示包含 html 标签的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文