Answer the question
In order to leave comments, you need to log in
Problem with Django autoescape?
Hello. I'm writing my own blog, but there's a problem.
If I want to autoescape off inside the block and display a variable with the tag , then for some reason it is displayed outside this block...
So in the layout in the file:
<p id="text_blog">{% autoescape off %}{{ blog.text }}{% endautoescape %}</p>
<p id="text_blog"></p><h1>testh1</h1><p></p>
Answer the question
In order to leave comments, you need to log in
There are no nested p tags, if the next tag is encountered, then the previous one is automatically closed. This was my mistake. Thanks Bacon for the help.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question