Allow html tags in text string.

This commit is contained in:
Michael Teeuw 2017-10-01 13:22:29 +02:00
parent 4757c36233
commit bad7316b80

View File

@ -1,5 +1,5 @@
<!--
Use | striptags(true) for HTML rendering
https://mozilla.github.io/nunjucks/templating.html#striptags-value-preserve_linebreaks
Use ` | safe` to allow html tages within the text string.
https://mozilla.github.io/nunjucks/templating.html#autoescaping
-->
<div>{{text | striptags(true)}}</div>
<div>{{text | safe}}</div>