What is the easiest way to remove all html / javascript from a string?
If you want to cut tags in python, you can use:
from django.utils.html import strip_tags strip_tags(string_value)
EDIT: If you use strip_tags, you should update django. Because security researchers have found a way around the strip_tags. Additional information: http://www.mehmetince.net/django-strip_tags-bypass-vulnerability-exploit/
Filter striptags .
{{ value|striptags }}
nice snippet if you want to keep multiple tags and share the rest:
http://djangosnippets.org/snippets/295/