Cheap web site hosting service by

 Back to Index


htmlclean - a small script to clean up existing HTML


htmlclean [-v] [-V] file1 [file2 file3 ...]


This program provides a command-line interface to the HTML::Clean module, which can help you to provide more compatible, smaller HTML files at the expense of reducing the human readability of the HTML code. In some cases you may be able to reduce the size of your HTML by up to 50%!

The HTML::Clean library provides a number of features that improve your HTML for browsing and serving:

htmlclean passes each file given on the command line to the library and writes out the new HTML according to the specified options. The default is to create a backup file and replace the file with cleaned HTML.

Removing whitespace, Comments and other useless or redundant constructs
Insuring that font tags work across multiple operating systems

For full details see the documentations for HTML::Clean itself.


Print the version of the program.

Verbose mode. Print 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  


For the library, see HTML::Clean


htmlclean is written by Paul Lindner, <>


Copyright (c> 1998 by ITU under the same terms as Perl.




Cheap domain name:
Domain name services from just
$8.95/year only

Register domain name search -
Buy domain name registration and cheap domain transfer at low, affordable price.

2002-2004 Web Site Hosting Service


[ It reminds me of the claim that Americans built the first computer... It depends on what properties are necessary for a device to be classed as a computer: That it's electronic? That it has Randomly Accessible Memory? That it operates on a stored program? I am tempted to suggest that one of the requirements implicit in some people's lists is that it was built in America.   ]



Disclaimer: This documentation is provided only for the benefits of our web hosting customers.
For authoritative source of the documentation, please refer to