显示字符串存储在mongo作为HTML使用PUG



我有一些HTML存储在mongoDB的字符串格式。

db为'db',属性为'profile',内容如下

"This is me and I want to be <strong>strong</strong>"

我使用PUG来显示来自服务器的视图,我使用这种格式

.profile
p= user.profile

现在我的HTML输出如下所示,这是预期的

This is me and I want to be <strong>strong</strong>

但是我希望它使用html标签作为html并像这样显示

这就是我,我想成为坚强的

有办法做到这一点吗?

在pug文件中:

.profile
p!= user.profile

这将避免pug转义HTML标签。