def stripcomments(url):
  html = url
  if checkurl(url):
    html = gethtml(url)
    if not html:
      return None
  pattern = r"<!--.*?-->"
  pat = re.compile(pattern, re.IGNORECASE | re.DOTALL)
  byeblock = pat.sub('', html)
  return byeblock
Return HTML with comments stripped out
dataset/ETHPy150Open miklevin/pipulate/common.py/stripcomments