HTML::...ag::End(3pm)

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

✨ NAME ✨

HTML::TokeParser::Simple::Token::Tag::End β€” the Token.pm "end tag" class πŸ’… (that's the whole name bestie, we're not abbreviating, HTML::...ag::End(3pm) is just the page header being lazy πŸ’€)


🌸 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. Lowkey iconic. It loops through every token and skips anything that isn't text, so all you're left with is the words. Ate. πŸ”₯


πŸ¦‹ DESCRIPTION πŸ¦‹

This class does most of the heavy lifting for HTML::TokeParser::Simple. She's the main character doing all the work in the background, no cap. πŸ‘‘

Want the details? Go read the HTML::TokeParser::Simple docs, that's where the full lore lives. πŸ“š


πŸŽ€ OVERRIDDEN METHODS πŸŽ€

These are the methods this class took over and made its own. The originals were giving nothing, so she rewrote them. Periodt. πŸ’–

  • as_is
  • get_tag
  • is_end_tag
  • is_tag
  • return_text
  • rewrite_tag

bestie that's literally the whole page. six methods, zero filler, she's efficient like that 🫢

okay so that's a wrap on the HTML::...ag::End(3pm) page β€” brought to you by User Contributed Perl Documentation (yes the manual name, it's giving community-maintained excellence 🌈), running on perl v5.32.1, dated 2021-12-05. Shoutout to whoever wrote this, we love you, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from