javascript - Django, html tags not interpreted -


i loading text db of django project display in template.

in text stored within data base, added html tags seems browser cannot interprete html tags.

here template:

<div>   <!-- body_text = "<strong>hello</strong> word"  -->   {{ entry.body_text }}  </div> 

and got raw text: <strong>hello</strong> word instead of

<strong>hello</strong> word

what doing wrong?

if don't want html escaped, use safe filter:

{{ entry.body_text|safe }} 

django doc safe filter.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -