parameters: (data, entities={})
return_statement: return data
docstring: Escape &, <, and > in a string of data.
  
      You can escape other strings of data by passing a dictionary as
      the optional entities parameter.  The keys and values must all be
      strings; each key will be replaced with its corresponding value.
docstring_summary: Escape &, <, and > in a string of data.
docstring_tokens: Escape & < and > in a string of data .
function: def escape(data, entities={}):
      """Escape &, <, and > in a string of data.
  
      You can escape other strings of data by passing a dictionary as
      the optional entities parameter.  The keys and values must all be
      strings; each key will be replaced with its corresponding value.
      """
  
      # must do ampersand first
      data = data.replace("&", "&amp;")
      data = data.replace(">", "&gt;")
      data = data.replace("<", "&lt;")
      if entities:
          data = __dict_replace(data, entities)
      return data
function_tokens: def escape ( data , entities = { } ) : # must do ampersand first data = data . replace ( "&" , "&amp;" ) data = data . replace ( ">" , "&gt;" ) data = data . replace ( "<" , "&lt;" ) if entities : data = __dict_replace ( data , entities ) return data