def UrlEscape(url):
  """Scapes XML entities.
  
  Args:
    url: potentially with XML invalid characters.
  
  Returns:
    same URL after replacing those with XML entities.
  """

  return url.replace("'", "&apos;").replace("'", "&quot;")