{
    "content": [
        {
            "type": "text",
            "text": "# HTML::TokeParser::Simple::Token (perldoc)\n\n## NAME\n\nHTML::TokeParser::Simple::Token - Base class for \"HTML::TokeParser::Simple\" tokens.\n\n## SYNOPSIS\n\nuse HTML::TokeParser::Simple;\nmy $p = HTML::TokeParser::Simple->new( $somefile );\nwhile ( my $token = $p->gettoken ) {\n# This prints all text in an HTML doc (i.e., it strips the HTML)\nnext unless $token->istext;\nprint $token->asis;\n}\n\n## DESCRIPTION\n\nThis is the base class for all returned tokens. It should never be instantiated directly. In\nfact, it will \"croak()\" if it is.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **METHODS**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "HTML::TokeParser::Simple::Token",
        "section": "",
        "mode": "perldoc",
        "summary": "HTML::TokeParser::Simple::Token - Base class for \"HTML::TokeParser::Simple\" tokens.",
        "synopsis": "use HTML::TokeParser::Simple;\nmy $p = HTML::TokeParser::Simple->new( $somefile );\nwhile ( my $token = $p->gettoken ) {\n# This prints all text in an HTML doc (i.e., it strips the HTML)\nnext unless $token->istext;\nprint $token->asis;\n}",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 46,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "HTML::TokeParser::Simple::Token - Base class for \"HTML::TokeParser::Simple\" tokens.\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use HTML::TokeParser::Simple;\nmy $p = HTML::TokeParser::Simple->new( $somefile );\n\nwhile ( my $token = $p->gettoken ) {\n# This prints all text in an HTML doc (i.e., it strips the HTML)\nnext unless $token->istext;\nprint $token->asis;\n}\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This is the base class for all returned tokens. It should never be instantiated directly. In\nfact, it will \"croak()\" if it is.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "The following list of methods are provided by this class. Most of these are stub methods which\nmust be overridden in a subclass. See HTML::TokeParser::Simple for descriptions of these\nmethods.\n\n*   asis\n\n*   deleteattr\n\n*   getattr\n\n*   getattrseq\n\n*   gettag\n\n*   gettoken0\n\n*   iscomment\n\n*   isdeclaration\n\n*   isendtag\n\n*   ispi\n\n*   isprocessinstruction\n\n*   isstarttag\n\n*   istag\n\n*   istext\n\n*   returnattr\n\n*   returnattrseq\n\n*   returntag\n\n*   returntext\n\n*   returntoken0\n\n*   rewritetag\n\n*   setattr\n",
                "subsections": []
            }
        }
    }
}