HTMLCLEAN(1p)
β¨ NAME β¨
htmlclean β a small script to clean up existing HTML π
(also hi, this is HTMLCLEAN(1p), like section 1p of the manual, filed under User Contributed Perl Documentation, and honestly? she's serving.)
πΈ SYNOPSIS πΈ
htmlclean [-v] [-V] file1 [file2 file3 ...]
π¦ DESCRIPTION π¦
okay so bestie, this program is basically a command-line interface to the HTML::Clean module π«Ά. What does that mean for you? It helps you hand out more compatible, smaller HTML files β the tradeoff being that the HTML code itself becomes less human-readable. Which, fair. Sacrifices were made. And in some cases you can literally shrink your HTML by up to 50% ππ₯ like that is not a drill.
The HTML::Clean library has a whole bunch of features that make your HTML better for browsing and serving:
- Removing whitespace, Comments and other useless or redundant constructs π§Ή
- Insuring that font tags work across multiple operating systems π
The way htmlclean works: it passes each file you give it on the command line to the library, and then writes out the new HTML according to whatever options you picked β¨. Default behavior is that it creates a backup file and replaces the file with the cleaned HTML β so your original is still chilling in the background, no worries.
For full details, go read the documentation for HTML::Clean itself, she has the whole lore iykyk.
π OPTIONS π
-Vβ Print the version of the program. Short and sweet, periodt. π-vβ Verbose mode. It prints out the original and final file sizes, plus the compression percent β¨. For example:
5261 4065 22% /tmp/development-es.html
5258 4061 22% /tmp/development-fr.html
4651 3683 20% /tmp/development.html
π SEE ALSO π
For the library, see HTML::Clean π
π AUTHOR π
htmlclean is written by Paul Lindner, <paul.lindner@itu.int>
β COPYRIGHT β
Copyright (c> 1998 by ITU under the same terms as Perl.
yes it really says (c> in the original, we are not touching it, that typo ate and we respect it ππ
k byeeee bestie π¦β¨ β this page came to you courtesy of perl v5.36.0, dated 2022-10-15, and it's HTMLCLEAN(1p) through and through. go clean some HTML, you absolute icon ππ
π¦ where this page comes from
- ubuntu noble: libhtml-clean-perl 1.4-4 Β· Artistic-1.0-Perl
- ubuntu resolute: libhtml-clean-perl 1.4-4 Β· Artistic-1.0-Perl
- ubuntu stonking: libhtml-clean-perl 1.4-4 Β· Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms