[Answered ]-Django Default Filter Question


Answer 1)

{% for tip in tips %}
     some text {{ tip }} some more text
{% endfor %}

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