HTML text being printed as plain text using Flask
Because Jinja2 will auto escape HTML tags, to disable it, try:
{% if doc.highlight %} {% for entry in doc.highlight.text %} {{ entry|safe }}<br> {% endfor %}{% endif %}
The safe filter
[marks] the value as safe which means that in an environment with automatic escaping enabled this variable will not be escaped.