mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
Allow html tags in text string.
This commit is contained in:
parent
4757c36233
commit
bad7316b80
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
Use | striptags(true) for HTML rendering
|
Use ` | safe` to allow html tages within the text string.
|
||||||
https://mozilla.github.io/nunjucks/templating.html#striptags-value-preserve_linebreaks
|
https://mozilla.github.io/nunjucks/templating.html#autoescaping
|
||||||
-->
|
-->
|
||||||
<div>{{text | striptags(true)}}</div>
|
<div>{{text | safe}}</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user