docs: def xml_entity_escape(data):
      """
      replace special characters with their XML entity versions
      """
  
      data = data.replace("&", "&amp;")
      data = data.replace(">", "&gt;")
      data = data.replace("<", "&lt;")
      return data