HTML::...::Start(3pm)

πŸ“¦
version 3.16 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– HTML::TokeParser::Simple::Token::Tag::Start πŸ’–

okay so bestie, you found the manual page for HTML::...::Start(3pm) β€” which is the ✨full✨ name HTML::TokeParser::Simple::Token::Tag::Start β€” the token class for start tags in HTML::TokeParser::Simple. It lives in the User Contributed Perl Documentation corner of your system, and honestly? It's lowkey the backbone of the whole operation. 🫢


🌸 NAME 🌸

HTML::TokeParser::Simple::Token::Tag::Start β€” the Token.pm "start tag" class. That's it, that's the whole vibe. πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

use HTML::TokeParser::Simple;
my $p = HTML::TokeParser::Simple->new( $somefile );

while ( my $token = $p->get_token ) {
    # This prints all text in an HTML doc (i.e., it strips the HTML)
    next unless $token->is_text;
    print $token->as_is;
}

like. look at that loop. it's giving elegant. you grab a parser, you spin through tokens, you skip anything that isn't text, and you print what's left. HTML? gone. stripped. not invited. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so this class? it does most of the heavy lifting for HTML::TokeParser::Simple. main character energy fr fr. if you want the actual details, the HTML::TokeParser::Simple docs are where you wanna be β€” this page is just the start-tag corner of the universe. ⭐


✨ OVERRIDDEN METHODS ✨

these are the methods this class has overridden, bestie. all fourteen of them, no skips, no cuts, no cap:

  • as_is
  • delete_attr
  • get_attr
  • get_attrseq
  • get_tag
  • get_token0
  • is_start_tag
  • is_tag
  • return_attr
  • return_attrseq
  • return_tag
  • return_text
  • rewrite_tag
  • set_attr

like, that's a list. that's the whole roster. iykyk. πŸ”₯


and that's the page, babes πŸ’œ this was perl v5.32.1, dated 2021-12-05, filed under HTML::...::Start(3pm) β€” go forth and tokenize, you absolute icon πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from