tags:

views:

1466

answers:

2

What is the easiest way to strip all html/javascript from a string?

+10  A: 

The striptags template filter.

{{ value|striptags }}
Ayman Hourieh
+16  A: 

If you want to strip tags in the python, you can use:

from django.utils.html import strip_tags

strip_tags(string_value)
Eldila