HTML::...xt::W3m(3pm)

πŸ“¦
version 26 Β· 5 versions
, in debian bookworm, debian trixie, ubuntu noble

πŸ’… HTML::FormatText::W3m β€” bestie edition ✨

okay so this is HTML::FormatText::W3m, a little Perl module from the User Contributed Perl Documentation crew that takes your HTML and turns it into plain text. it's giving "glow down but make it intentional" πŸ¦‹


🌸 NAME 🌸

HTML::FormatText::W3m β€” format HTML as plain text using w3m πŸ’–


✨ SYNOPSIS ✨

here's the vibe, copy-paste ready, no cap:

use HTML::FormatText::W3m;
$text = HTML::FormatText::W3m->format_file ($filename);
$text = HTML::FormatText::W3m->format_string ($html_string);

$formatter = HTML::FormatText::W3m->new (rightmargin => 60);
$tree = HTML::TreeBuilder->new_from_file ($filename);
$text = $formatter->format ($tree);

like, you can go in with a file, you can go in with a string, or you can build your own formatter object and hand it a whole tree. pick your fighter 🫢


πŸŽ€ DESCRIPTION πŸŽ€

so HTML::FormatText::W3m turns HTML into plain text using the w3m program. that's it, that's the whole personality. the actual work is being done by w3m, our icon, our main character πŸ‘‘

the module lives here, go say hi:

<http://sourceforge.net/projects/w3m>

the interface is compatible with formatters like HTML::FormatText, but heads up bestie β€” all the parsing etc is done by w3m. so it's not the same engine under the hood, it's just dressed the same. it's giving same outfit, different girl πŸ’…

also, go read HTML::FormatExternal for the formatting functions and options, because all of them are supported by HTML::FormatText::W3m. every single one. no crumbs left behind ✨


πŸ‘€ SEE ALSO πŸ‘€


🌈 HOME PAGE 🌈

<http://user42.tuxfamily.org/html-formatexternal/index.html>

πŸ’œ LICENSE πŸ’œ

Copyright 2008, 2009, 2010, 2013, 2015 Kevin Ryde

HTML-FormatExternal is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

HTML-FormatExternal is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with HTML-FormatExternal. If not, see <http://www.gnu.org/licenses/>.

fr fr read the license, it's not a vibe check you can skip 🚨

and that's the whole page, bestie! πŸ’– this one came from perl v5.36.0, dated 2022-11-19, and it's part of HTML::...xt::W3m(3pm) β€” stay hydrated, stay formatted, mwah πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from