You can use your filters in chain, so:
{{ blog.blog|raw|nl2br }}
سؤال
I am using nl2br filter on the blog body to put in spaces. Is it possible to also use another filter on top of this? I would like to use |raw for some html code in the blog body.
e.g., how can I add in the |raw filter on top of this?
{% for blogs in blog %}
<p>{{ blog.blog|nl2br }}</p>
{% endfor %}
المحلول
You can use your filters in chain, so:
{{ blog.blog|raw|nl2br }}