Correct HTML Files

See the download page to obtain this program

Description

This script corrects major structural errors in HTML files:

Unfortunately a number of applications do not generate correct HTML, hence the need for this utility. Note that the script overwrites the original file, so work on a copy to be sure. Warning messages are sent to standard error.

Options

The command line options are:

-h
print usage as help

Usage

Run on one or more HTML files with or without an extension. Warning messages are sent to standard error. Examples of usage are:

htmlfix some.html
correct one file
htmlfix *.html
correct all files in the current directory

Change the first line of the script according to where Perl is located. Although tested with Perl5, the script may work with only minor changes for Perl4.

Licence

htmlfix is free software, distributed under the GNU Public License Version 2. You may re-distribute this software provided you preserve this README file. The contents of this package may be used freely for non-commercial purposes provided this README file and copyright notices are retained. Copyright remains with the author. No warranties are given as to the accuracy or suitability of this package.

History

First public version Ken Turner, 21st November 1998


Up one level to Web Utilities

Web Ken Turner Home   Email    Search Search Web Pages

Last Update: 15th July 2006
URL: http://www.cs.stir.ac.uk/~kjt/software/web/htmlfix.html