{
    "mode": "perldoc",
    "parameter": "HTML::TokeParser::Simple::Token",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3ATokeParser%3A%3ASimple%3A%3AToken/json",
    "generated": "2026-06-13T06:30:10Z",
    "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}",
    "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": []
        }
    },
    "summary": "HTML::TokeParser::Simple::Token - Base class for \"HTML::TokeParser::Simple\" tokens.",
    "flags": [],
    "examples": [],
    "see_also": []
}