数据库中的数据:<h1>内容</h1>
在页面中显示![25YG)R`UUI0E8O22I$XEET.png
怎么能够让他解析html标签呢
https://mozilla.github.io/nunjucks/templating.html
我猜是这个
raw
If you want to output any of the special Nunjucks tags like {{, you can use a {{, you can use a {% raw %} block and anything inside of it will be output as plain text.
@i5ting 不是要显示纯文本 是要 <h1>
这个标签有效果
啊 可以结了呀 Autoescaping If autoescaping is turned on in the environment, all output will automatically be escaped for safe output. To manually mark output as safe, use the safe filter. Nunjucks will not escape this output.
{{ foo }} //
<span%gt;
{{ foo | safe }} //<span>