def escape_xml_illegal_chars(val, replacement=''):
 return _illegal_xml_chars_re.sub(replacement, val)

def escape_xml_illegal_chars ( val , replacement = '' ) : return _illegal_xml_chars_re . sub ( replacement , val )
replaces any character not supported by xml with a replacement string thanks to URL .