I have some formatted data in MongoDB, named i:
<p><strong>some string</strong></p>
But when I render it with flask and jinjia, like:
{% for i in example %}
<div>{{ i }}</div>
{% endfor %}
The Browser show me:
<p><strong>some string</strong></p>
But I want to just get:
some string
I do it using ajax and put the formatted data in html, using jQuery html() method.
But how can I do it just in template rendering part?
safefilter? jinja.pocoo.org/docs/dev/templates/#safe