HTML Tidy-cvs_20070326

Introduction to HTML Tidy

The HTML Tidy package contains a command line tool and libraries used to read HTML, XHTML and XML files and write cleaned up markup. It detects and corrects many common coding errors and strives to produce visually equivalent markup that is both W3C compliant and compatible with most browsers.

Package Information

HTML Tidy tarballs are no longer generated by the maintainers. To build from source, the HTML Tidy developers recommend using current CVS. The source tarball shown above was created by the BLFS team by pulling a CVS version and generating the autotool components. BLFS made no changes to the existing source files.

HTML Tidy Dependencies



User Notes:

Installation of HTML Tidy

Install HTML Tidy by running the following commands:

./configure --prefix=/usr &&

To test the results, issue: make check.

Now, as the root user:

make install

If you wish to install the API documentation, issue the following command as the root user:

make -C htmldoc install_apidocs

Configuring HTML Tidy

Config Files

The absolute path of the file specified in $HTML_TIDY.

Configuration Information

The default configuration options can be set in the file defined in $HTML_TIDY. Additional configuration options can be passed to tidy via command line parameters or the -config <file> parameter.


Installed Programs: tab2space and tidy
Installed Library: libtidy.{so,a}
Installed Directory: /usr/share/doc/tidy-051020

Short Descriptions


is a utility to expand tabs and ensure consistent line endings.


validates, corrects, and pretty-prints HTML files.


libraries provide the HTML Tidy API functions to tidy and can also be called by other programs.

Last updated on 2007-04-04 14:42:53 -0500