Answer the question
In order to leave comments, you need to log in
Instead of html tags, special characters are displayed, who met? How to fix?
Good afternoon
I use Flask, and I output some of the information to the web page from sqlite3 to the template already with html markup, but when outputting < and > are replaced by special characters, although the rest of the template is displayed normally. Tell me what to do? In which direction to dig?
More information
Template:
{% extends "layout.html" %}
{% block content %}
<div class="col-md-1">
{{description}}
</div>
{% endblock %}
<p>бла бла бла</p>
<div class="col-md-1">
<p>бла бла бла</p>
</div>
Answer the question
In order to leave comments, you need to log in
All reasonable templating engines by default escape what is passed to them for output (to avoid CSRF). Accordingly, look for how Jinja 2 disables html escaping .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question