{
    "content": [
        {
            "type": "text",
            "text": "# HTML::Parse (perldoc)\n\n## NAME\n\nHTML::Parse - Deprecated, a wrapper around HTML::TreeBuilder\n\n## SYNOPSIS\n\nSee the documentation for HTML::TreeBuilder\n\n## DESCRIPTION\n\nDisclaimer: This module is provided only for backwards compatibility with earlier versions of\nthis library. New code should *not* use this module, and should really use the HTML::Parser and\nHTML::TreeBuilder modules directly, instead.\n\n## Sections\n\n- **NAME**\n- **VERSION**\n- **SYNOPSIS**\n- **DESCRIPTION** (2 subsections)\n- **SEE ALSO**\n- **AUTHOR**\n- **COPYRIGHT AND LICENSE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "HTML::Parse",
        "section": "",
        "mode": "perldoc",
        "summary": "HTML::Parse - Deprecated, a wrapper around HTML::TreeBuilder",
        "synopsis": "See the documentation for HTML::TreeBuilder",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 7,
                "subsections": [
                    {
                        "name": "parse_html",
                        "lines": 9
                    },
                    {
                        "name": "parse_htmlfile",
                        "lines": 29
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 21,
                "subsections": []
            },
            {
                "name": "COPYRIGHT AND LICENSE",
                "lines": 10,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "HTML::Parse - Deprecated, a wrapper around HTML::TreeBuilder\n",
                "subsections": []
            },
            "VERSION": {
                "content": "This document describes version 5.07 of HTML::Parse, released August 31, 2017 as part of\nHTML-Tree.\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "See the documentation for HTML::TreeBuilder\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Disclaimer: This module is provided only for backwards compatibility with earlier versions of\nthis library. New code should *not* use this module, and should really use the HTML::Parser and\nHTML::TreeBuilder modules directly, instead.\n\nThe \"HTML::Parse\" module provides functions to parse HTML documents. There are two functions\nexported by this module:\n",
                "subsections": [
                    {
                        "name": "parse_html",
                        "content": "This function is really just a synonym for $obj->parse($html) and $obj is assumed to be a\nsubclass of \"HTML::Parser\". Refer to HTML::Parser for more documentation.\n\nIf $obj is not specified, the $obj will default to an internally created new\n\"HTML::TreeBuilder\" object configured with strictcomment() turned on. That class implements\na parser that builds (and is) a HTML syntax tree with HTML::Element objects as nodes.\n\nThe return value from parsehtml() is $obj.\n"
                    },
                    {
                        "name": "parse_htmlfile",
                        "content": "Same as parsehtml(), but pulls the HTML to parse, from the named file.\n\nReturns \"undef\" if the file could not be opened, or $obj otherwise.\n\nWhen a \"HTML::TreeBuilder\" object is created, the following variables control how parsing takes\nplace:\n\n$HTML::Parse::IMPLICITTAGS\nSetting this variable to true will instruct the parser to try to deduce implicit elements\nand implicit end tags. If this variable is false you get a parse tree that just reflects the\ntext as it stands. Might be useful for quick & dirty parsing. Default is true.\n\nImplicit elements have the implicit() attribute set.\n\n$HTML::Parse::IGNOREUNKNOWN\nThis variable contols whether unknown tags should be represented as elements in the parse\ntree. Default is true.\n\n$HTML::Parse::IGNORETEXT\nDo not represent the text content of elements. This saves space if all you want is to\nexamine the structure of the document. Default is false.\n\n$HTML::Parse::WARN\nCall warn() with an appropriate message for syntax errors. Default is false.\n\nREMEMBER!\nHTML::TreeBuilder objects should be explicitly destroyed when you're finished with them. See\nHTML::TreeBuilder.\n"
                    }
                ]
            },
            "SEE ALSO": {
                "content": "HTML::Parser, HTML::TreeBuilder, HTML::Element\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Current maintainers:\n\n*   Christopher J. Madsen \"<perl AT cjmweb.net>\"\n\n*   Jeff Fearn \"<jfearn AT cpan.org>\"\n\nOriginal HTML-Tree author:\n\n*   Gisle Aas\n\nFormer maintainers:\n\n*   Sean M. Burke\n\n*   Andy Lester\n\n*   Pete Krawczyk \"<petek AT cpan.org>\"\n\nYou can follow or contribute to HTML-Tree's development at\n<https://github.com/kentfredric/HTML-Tree>.\n",
                "subsections": []
            },
            "COPYRIGHT AND LICENSE": {
                "content": "Copyright 1995-1998 Gisle Aas, 1999-2004 Sean M. Burke, 2005 Andy Lester, 2006 Pete Krawczyk,\n2010 Jeff Fearn, 2012 Christopher J. Madsen.\n\nThis library is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n\nThe programs in this library are distributed in the hope that they will be useful, but without\nany warranty; without even the implied warranty of merchantability or fitness for a particular\npurpose.\n",
                "subsections": []
            }
        }
    }
}