def strip_invalid_xml_chars(s):
 return _invalid_char_re.sub('', s)

def strip_invalid_xml_chars ( s ) : return _invalid_char_re . sub ( '' , s )
return the string with any invalid xml characters removed .