(text)
return doctype_matches(text, r'html\s+PUBLIC\s+"-//W3C//DTD X?HTML.*')
Check if the file looks like it has a html doctype.
Check if the file looks like it has a html doctype.
Check if the file looks like it has a html doctype .
def html_doctype_matches(text):
    """
    Check if the file looks like it has a html doctype.
    """
    return doctype_matches(text, r'html\s+PUBLIC\s+"-//W3C//DTD X?HTML.*')
def html_doctype_matches ( text ) : return doctype_matches ( text , r'html\s+PUBLIC\s+"-//W3C//DTD X?HTML.*' )