[Answered ]-Django Default Filter Question

2👍

Answer 1)

<p>
{% for tip in tips %}
     some text {{ tip }} some more text
{% endfor %}
</p>

Answer 2)

Mark the content of tip as safe by using {{ tip|safe }}. But Please be aware that this might be a security hole if the content of tip is somehow user supplied. It might lead to Cross-site scripting if someone could enter Javascript code intp tip.

Leave a comment