5
The safe
template filter allows html tags and entities in the content of var
. Without it, your html will be escaped so you’ll see things like
<div>
etc on your page.
3
If var has html elements then the safe template filter will render it.
For example:
If var is hi
var|safe will be rendered hi
var will be displayed <b>hi</b>
- [Django]-Django admin not working with custom auth backend
- [Django]-Parsing dates with django utils parse_date
- [Django]-Running Django 1.5 and Django 1.3 on the same server
Source:stackexchange.com