NAME
tidy - validate, correct, and pretty-print HTML files
SYNOPSIS
ttiiddyy [option ...] [file ...] [option ...] [file ...]DESCRIPTION
Tidy reads HTML, XHTML and XML files and writes cleaned up markup. For HTML varians, it detects and corrects many common coding errors andstrives to produce visually equivalent markup that is both W3C com-
plaint and works on most browsers. A common use of Tidy is to convertplain HTML to XHTML. For generic XML files, Tidy is limited to cor-
recting basic well-formedness errors and pretty printing.
If no markup file is specified, Tidy reads the standard input. If no output file is specified, Tidy writes markup to the standard output. If no error file is specified, Tidy writes messages to the standard error. OOPPTTIIOONNSS PPrroocceessssiinngg ddiirreeccttiivveess-iinnddeenntt oorr -ii to indent element content
-oommiitt to omit optional end tags
-wwrraapp <
> to wrap text at the specified (default is 68) -uuppppeerr oorr -uu to force tags to upper case (default is lower case)
-cclleeaann oorr -cc to replace FONT, NOBR and CENTER tags by CSS
-bbaarree oorr -bb to strip out smart quotes and em dashes, etc.
-nnuummeerriicc oorr -nn to output numeric rather than named entities
-eerrrroorrss oorr -ee to only show errors
-qquuiieett oorr -qq to suppress nonessential output
-xxmmll to specify the input is well formed XML
-aassxxmmll to convert HTML to well formed XHTML
-aassxxhhttmmll to convert HTML to well formed XHTML
-aasshhttmmll to force XHTML to well formed HTML
-aacccceessss <
to do additional accessibility checks (> = 1, 2, 3) CChhaarraacctteerr eennccooddiinnggss -rraaww to output values above 127 without conversion to enti-
ties-aasscciiii to use US-ASCII for output, ISO-8859-1 for input
-llaattiinn11 to use ISO-8859-1 for both input and output
-iissoo22002222 to use ISO-2022 for both input and output
-uuttff88 to use UTF-8 for both input and output
-mmaacc to use MacRoman for input, US-ASCII for output
-uuttff1166llee to use UTF-16LE for both input and output
-uuttff1166bbee to use UTF-16BE for both input and output
-uuttff1166 to use UTF-16 for both input and output
-wwiinn11225522 to use Windows-1252 for input, US-ASCII for output
-bbiigg55 to use Big5 for both input and output
-sshhiiffttjjiiss to use ShiftJIS for both input and output
-llaanngguuaaggee <
> to set the two-letter language code
use) FFiillee mmaanniippuullaattiioonn(for future -oouuttppuutt oorr -oo <
to write output to the specified> -ff <
> to write errors to the specified -ccoonnffiigg <
> to set configuration options from the specified -mmooddiiffyy oorr -mm to modify the original input files
MMiisscceellllaanneeoouuss-vveerrssiioonn oorr -vv to show the version of Tidy
-hheellpp,, -hh oorr -??
to list the command line options-hheellpp-ccoonnffiigg to list all configuration options
-sshhooww-ccoonnffiigg to list the current configuration settings
UUSSAAGGEEUse -blah blarg for any configuration option "blah" with argument
"blarg" Input/Output default to stdin/stdout respectively Single letter optionsapart from -f and -o may be combined as in: tidy -f errs.txt -imu
foo.html For further info on HTML see http://www.w3.org/MarkUp For more information about HTML Tidy, visit the project home page athttp://tidy.sourceforge.net. Here, you will find links to documenta-
tion, mailing lists (with searchable archives) and links to report bugs. ENVIRONMENT HHTTMMLLTTIIDDYY Name of the default configuration file. This should be an absolute path, since you will probably invoke ttiiddyy from different directories. The value of HTMLTIDY willbe parsed after the compiled-in default (defined with
-DCONFIGFILE), but before any of the files specified
using -ccoonnffiigg.
EEXXIITT SSTTAATTUUSS 0 All input files were processed successfully. 1 There were warnings. 2 There were errors.SEE ALSO
HTML Tidy Project Page at http://tidy.sourceforge.net
Dave Raggett's Tidy Overview at http://www.w3.org/People/Raggett/tidy/
Tidy Quick Reference at http://tidy.sourceforge.net/docs/quickref.html
For information about TidyLib, see http://tidy.sourceforge.net/libin-
tro.html AUTHORS Dave Raggett. Terry Teague . Bjoern Hoehrmann Charles Reitzel This manual page was written by Matej Vela and updated by Charles Reitzel. December 1, 2002 TIDY(1)