HTMLCLEAN(1p)

πŸ“¦
version 1.4 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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 (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