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.
This package is known to build and work properly using an LFS-7.7 platform.
Download (HTTP): http://anduin.linuxfromscratch.org/sources/BLFS/svn/t/tidy-cvs_20101110.tar.bz2
Download MD5 sum: dd1fe109b4259ad3f364b175787ad5e9
Download size: 807 KB
Estimated disk space required: 12 MB
Estimated build time: 0.2 SBU
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, then generating the autotool components and documentation. BLFS made no changes to the existing source files.
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/tidy
Install HTML Tidy by running the following commands:
./configure --prefix=/usr --disable-static && make
This package does not come with a test suite.
Now, as the root
user:
make install && install -v -m644 -D htmldoc/tidy.1 \ /usr/share/man/man1/tidy.1 && install -v -m755 -d /usr/share/doc/tidy-cvs_20101110 && install -v -m644 htmldoc/*.{html,gif,css} \ /usr/share/doc/tidy-cvs_20101110
If you wish to install the API documentation you must have
Doxygen-1.8.9.1 installed, then change
directories into the htmldoc
of the
source tree and issue the command doxygen. Then as the root
user copy the api
directory to /usr/share/doc/tidy-cvs_20101110.
--disable-static
: This
switch prevents installation of static versions of the libraries.
The absolute path of the file specified in $HTML_TIDY
.
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.
Last updated on 2015-02-20 16:15:05 -0500