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.
Download (HTTP): http://tidy.sourceforge.net/src/tidy_src_050305.tgz
Download MD5 sum: 11f27e0b6767660911a7a2cc5c491784
Download size: 245 KB
Estimated disk space required: 9.7 MB
Estimated build time: 0.25 SBU
HTML Tidy is updated very frequently by its maintainers, and the source package listed above may not be available at the listed URL due to the release of a newer version. The most current source package can be always be downloaded from http://tidy.sourceforge.net/src/. If this version is newer than the version listed above, the following instructions should work, but have not yet been tested by BLFS. If you'd rather download the version listed above, you can find it at http://tidy.sourceforge.net/src/old/.
Documentation: http://tidy.sourceforge.net/docs/tidy_docs.tgz
Download MD5 sum: 0fc0d02335cdeb945b02c6907850ba5d
Download size: 153 KB
The HTML Tidy documentation is contained in a separate tarball. Unpack both the source and docs tarballs before starting the build.
Install HTML Tidy by running the following commands:
patch -Np1 -i ../tidy-050305-prevent_PRE_newlines-1.patch &&
sh build/gnuauto/setup.sh &&
./configure --prefix=/usr &&
make
Now, as the root user:
make install &&
install -v -m644 htmldoc/man_page.txt \
/usr/share/man/man1/tidy.1 &&
install -v -d -m755 /usr/share/doc/tidy &&
cp -v -R htmldoc /usr/share/doc/tidy
sh build/gnuauto/setup.sh: This command prepares the source tree for building using the GNU “Auto” tools.
Last updated on 2005-03-07 07:02:22 -0700