@register.filter(is_safe=True)
@stringfilter
def striptags(value):
 return strip_tags(value)

@ register . filter ( is_safe = True ) @ stringfilter def striptags ( value ) : return strip_tags ( value )
strips all [x]html tags .