

def deletetag(url, tag):
    'Takes html and a tag and returns html with tags removed, but in-between html still there.'
    html = url
    if checkurl(url):
        html = gethtml(url)
        if (not html):
            return None
    pattern = ('(<\\s*%s\\s*.*?>)|(<\\s*/%s\\s*>)' % (tag, tag))
    pat = re.compile(pattern, (re.IGNORECASE | re.DOTALL))
    tagless = pat.sub('', html)
    return pat

dataset/ETHPy150Open miklevin/pipulate/common.py deletetag/VarMisuse@89/154 `tagless`->`pat`