

def verify_html(html):
    in_tag = False
    for c in html:
        if (c == '<'):
            if in_tag:
                return False
            in_tag = True
        elif (c == '>'):
            if (not in_tag):
                return False
            in_tag = False
    if in_tag:
        return False
    return True

dataset/ETHPy150Open zulip/zulip/zerver/lib/html_diff.py verify_html/original