HTML不在Jade中渲染
我正在用node.js,express,angular.js和jadebuild立一个网站。 我目前正在博客文章上testinghtml标签,这似乎并没有工作。
我现在专注于标题。 为什么浏览器不把它呈现为HTML? 我有顺便说一句,在铬testing,但我有同样的结果。 这是玉代码:
div(ng-repeat='post in posts') h3 |{{post.title}}
这是mongodblogging(有什么相关的):
"title": "<strong>This text is strong</strong>",
我能做些什么来解决这个问题?
尝试使用ngBindHtml指令:
div(ng-repeat='post in posts') h3 span(ng-bind-html-unsafe='post.title')