Django templating system provides a few options (filters) for escaping contents in the html, but they are kind of confusing to me as a beginner. Say I\'m following a tutoria
first of all, you should escape your content because you never know (even if you are the one who enter the data) if you are going to need special character (like <, >, ).
The syntax you use show you are uncomfortable with the use of escaping :
this
{% autoescape on %}
{{ content }}
{% endautoescape %}
is exactly the same as this
{{ content|escape }}
this
{{ content }}
is exactly the same as this <-- edit : If the autoescape is OFF (thanks to Paulo Scardine)
{{ content|safe }}
Safe is use like that :
{% autoescape on %}
{{ content }} <-- escape
{{ content|safe }} <-- not escape
{% endautoescape %}