Skip to content Skip to sidebar Skip to footer

Convert String To Html Code In Django Template

Possible Duplicate: django: rendering a template variable as html I am developing a django site and I have a string variable which has html tags in it. I need that string to be

Solution 1:

{{ description | safe }}

https://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs#safe

more

https://docs.djangoproject.com/en/dev/topics/templates/#automatic-html-escaping

Post a Comment for "Convert String To Html Code In Django Template"