How to render a variable as HTML in the Anqi CMS template?
renderThe filter can render a variable into HTML.
Usage method
renderHow to use the filter:
{{ obj|render }}
For example, if we need to render the introduction field of a document's custom field as HTML, it can be written like this:
{% archiveDetail introduction with name="introduction" %}
{{introduction|render|safe}}
Or
{# 无序的map对象 #}
<div>
{% archiveParams params with sorted=false %}
<div>{{params.introduction.Name}}:{{params.introduction.Value|render|safe}}</div>
{% endarchiveParams %}
</div>