@register.filter('escape', is_safe=True)
@stringfilter
def escape_filter(value):
 return mark_for_escaping(value)

@ register . filter ( 'escape' , is_safe = True ) @ stringfilter def escape_filter ( value ) : return mark_for_escaping ( value )
marks the value as a string that should not be auto-escaped .