【发布时间】:2015-08-06 09:23:52
【问题描述】:
我正在用node.js、express、angular.js 和jade 构建一个网站。我目前正在测试博客文章上的 html 标签,这似乎不起作用。
我现在专注于标题。为什么浏览器不将其呈现为 HTML?顺便说一句,我在 chrome 中对此进行了测试,但结果相同。这是玉码:
div(ng-repeat='post in posts')
h3
|{{post.title}}
这是 mongodb 记录(相关的):
"title": "<strong>This text is strong</strong>",
我能做些什么来解决这个问题?
【问题讨论】:
标签: html angularjs node.js express pug