@register.filter('escapejs')
@stringfilter
def escapejs_filter(value):
 return escapejs(value)

@ register . filter ( 'escapejs' ) @ stringfilter def escapejs_filter ( value ) : return escapejs ( value )
hex encodes characters for use in javascript strings .