@register.filter
@stringfilter
def cut(value, arg):
 safe = isinstance(value, SafeData)
 value = value.replace(arg, '')
 if (safe and (arg != ';')):
  return mark_safe(value)
 return value

@ register . filter @ stringfilter def cut ( value , arg ) : safe = isinstance ( value , SafeData ) value = value . replace ( arg , '' ) if ( safe and ( arg != ';' ) ) : return mark_safe ( value ) return value
removes all values of arg from the given string .