HTML Tidy
5.4.0
The HTACG Tidy HTML Project
|
HTML Tidy and LibTidy correct and clean up HTML content by fixing markup errors such as mismatched, mis-nested, and missing tags; missing end "/" tags; missing quotations; and many, many more discrepant conditions, and serves as an HTML pretty printer.
For example…
…can be converted to
This documentation is intended to serve as reference materials for both developers and LibTidy implementers so that they can have a reference for troubleshooting code, fixing issues with Tidy, and for implementing their own programs with LibTidy’s API.
Consumer documentation can be referenced from tidy -help
on all platforms, and via man tidy
on Unix platforms.
In addition to the automatically generated documentation from Tidy’s source code, these three major sections provide practical information about using Tidy, how to contribute, and how LibTidy works:
HTML Tidy is composed of two major components:
Tidy’s console program is the piece that most people interact with in their console or terminal application. It implements LibTidy on macOS, Linux and other Unixes, Windows, and more, and is a relatively simple program that can serve as a good reference model for programs wishing to implement LibTidy.
General information about the console application is available in General.
The critical mass of Tidy consists of LibTidy, a C static or dynamic library (your choice) that developers can integrate into their own program in order to bring all of Tidy’s power to your favorite tools.
An introduction to LibTidy is available in LibTidy, and some helpful guides are present in the Programming section, too.