When I render my template in django 1.2 and display strings with a
<br />
tag I get
<br />
instead?
Meaning I actually see the text
<br />
instead of getting the much desired line break.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume you mean that you output the string from a variable using the
{{ string }}notation.If you know the string you are outputting is safe, use the
|safefilter.{{ string|safe }}I would have to advise against doing this with any data that was supplied by the user without proper inspection.
Django docs