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 }}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With