

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

dataset/ETHPy150Open miklevin/pipulate/common.py deletenode/VarMisuse@30/67 `url`->`pattern`