parameters: (str)
return_statement: return str
docstring: Replaces chars ' " < > & with xml safe counterparts
docstring_summary: Replaces chars ' " < > & with xml safe counterparts
docstring_tokens: Replaces chars < > & with xml safe counterparts
function: def xml_escape(str):
      """Replaces chars ' " < > & with xml safe counterparts"""
      if str is None:
          return None
  
      str = str.replace("&", "&amp;")
      str = str.replace("'", "&apos;")
      str = str.replace('"', "&quot;")
      str = str.replace("<", "&lt;")
      str = str.replace(">", "&gt;")
      return str
function_tokens: def xml_escape ( str ) : if str is None : return None str = str . replace ( "&" , "&amp;" ) str = str . replace ( "'" , "&apos;" ) str = str . replace ( '"' , "&quot;" ) str = str . replace ( "<" , "&lt;" ) str = str . replace ( ">" , "&gt;" ) return str