def unescape(s):
  s = s.replace("&lt;", "<")
  s = s.replace("&gt;", ">")
  # this has to be last:
  s = s.replace("&amp;", "&")
  return s
Unescapes html. Taken from https://wiki.python.org/moin/EscapingHtml
dataset/ETHPy150Open pantsbuild/pex/pex/crawler.py/unescape