How to parse and output HTML code without escaping in the Anqi CMS template?
safe
Note: Usesafe
How to use
safe
How to use filters:
{{ obj|safe }}
For example<script>
Keep the output without escaping, you can write it like this:
{{ "<script>"|safe }}
# 显示结果
<script>
Sample Demo
{{ "<script>"|safe|escape }}
{{ "<script>"|safe|e }}
Show results
<script>
<script>