def html_and_illegal_unicode_replace(atom_element):
 if atom_element:
  new_element = RE_XML_ILLEGAL_COMPILED.sub('', atom_element)
  return strip_html(new_element)
 return atom_element

def html_and_illegal_unicode_replace ( atom_element ) : if atom_element : new_element = RE_XML_ILLEGAL_COMPILED . sub ( '' , atom_element ) return strip_html ( new_element ) return atom_element
replace an illegal for xml unicode character with nothing .