| 1 |
HTML::Tidy |
| 2 |
========== |
| 3 |
HTML::Tidy is an HTML checker in a handy dandy object. It's meant as |
| 4 |
a companion to [HTML::Lint][1], which is written in Perl but is not |
| 5 |
nearly as capable as HTML::Tidy. |
| 6 |
|
| 7 |
|
| 8 |
PREREQUISITES |
| 9 |
============= |
| 10 |
HTML::Tidy does very little work. The real work of HTML::Tidy is |
| 11 |
done by the tidyp library, which is written in C. To use HTML::Tidy, |
| 12 |
you must install tidyp. |
| 13 |
|
| 14 |
There are two, perhaps three, ways to install tidyp: |
| 15 |
|
| 16 |
* Get a tarball from the [tidyp source distributions][2] from |
| 17 |
Github and and build it like any other C library. Note that you |
| 18 |
must get a source tarball, *not* just clone the source tree via |
| 19 |
github. |
| 20 |
|
| 21 |
* Install the [Alien::Tidyp][3] Perl module, which automates the |
| 22 |
tidyp installation process. |
| 23 |
|
| 24 |
* Your operating system may also have a package for tidyp that you |
| 25 |
can install. As of this writing, these operating systems are known |
| 26 |
to provide tidyp library: |
| 27 |
* Fedora contains [tidyp-devel package][4] |
| 28 |
* FreeBSD contains [tidyp port][5] |
| 29 |
|
| 30 |
You need only do one of these steps. |
| 31 |
|
| 32 |
|
| 33 |
INSTALLATION |
| 34 |
============ |
| 35 |
Once you have libtidyp installed via one of the previous methods, |
| 36 |
install HTML::Tidy like any standard Perl module. |
| 37 |
|
| 38 |
perl Makefile.PL |
| 39 |
make |
| 40 |
make test |
| 41 |
make install |
| 42 |
|
| 43 |
|
| 44 |
COPYRIGHT AND LICENSE |
| 45 |
===================== |
| 46 |
Copyright (C) 2004-2017 by Andy Lester |
| 47 |
|
| 48 |
This library is free software. It may be redistributed and modified |
| 49 |
under the Artistic License v2.0. |
| 50 |
|
| 51 |
[1]: http://search.cpan.org/dist/HTML-Lint/ "HTML::Lint" |
| 52 |
[2]: http://github.com/petdance/tidyp/downloads "tidyp source distributions" |
| 53 |
[3]: http://search.cpan.org/dist/Alien-Tidyp/ "Alien::Tidyp" |
| 54 |
[4]: https://apps.fedoraproject.org/packages/tidyp "tidyp-devel package" |
| 55 |
[5]: http://fbsdmon.org/ports/textproc/tidyp "tidyp port" |