

def _strip_tag(tree, tag):
    '\n    Remove all tags that have the tag name ``tag``\n    '
    for el in tree.iter():
        if (el.tag == tag):
            el.getparent().remove(el)

dataset/ETHPy150Open PolicyStat/docx2html/docx2html/core.py _strip_tag/original