

def striplists(url):
    html = url
    if checkurl(url):
        html = gethtml(url)
        if (not html):
            return None
    pattern = '<\\s*(ol|ul)\\s*.*?>.*?<\\s*/(ol|ul)\\s*>'
    pat = re.compile(pattern, (re.IGNORECASE | re.DOTALL))
    listless = pat.sub('', html)
    pattern = '<\\s*li\\s*.*?>.*?<\\s*/li\\s*>'
    pat = re.compile(pattern, (re.IGNORECASE | re.DOTALL))
    listless = pat.sub('', listless)
    pattern = '(<\\s*(li|ol|ul)\\s*.*?>)|(<\\s*/(li|ol|ul)\\s*>)'
    pat = re.compile(pattern, (re.IGNORECASE | re.DOTALL))
    listless = pat.sub('', listless)
    return listless

dataset/ETHPy150Open miklevin/pipulate/common.py striplists/original