1 .\" tidy man page for the Tidy Sourceforge project
2 .TH tidy 1 "1 Feb 2007" "HTML Tidy 1.0.0" "User commands"
5 \fBtidy\fR - validate, correct, and pretty-print HTML files
8 \fBtidy\fR [option ...] [file ...] [option ...] [file ...]
10 Tidy reads HTML, XHTML and XML files and writes cleaned up markup. For
11 HTML variants, it detects and corrects many common coding errors and
12 strives to produce visually equivalent markup that is both W3C
13 compliant and works on most browsers. A common use of Tidy is to
14 convert plain HTML to XHTML. For generic XML files, Tidy is limited to
15 correcting basic well-formedness errors and pretty printing.
17 If no input file is specified, Tidy reads the standard input. If no
18 output file is specified, Tidy writes the tidied markup to the standard
19 output. If no error file is specified, Tidy writes messages to the
21 For command line options that expect a numerical argument, a default is
22 assumed if no meaningful value can be found.
28 \fB-output <file>\fR, \fB-o <file>\fR
29 write output to the specified <file>
30 (\fIoutput-file: <file>\fR)
33 set configuration options from the specified <file>
36 \fB-file <file>\fR, \fB-f <file>\fR
37 write errors to the specified <file>
38 (\fIerror-file: <file>\fR)
40 \fB-modify\fR, \fB-m\fR
41 modify the original input files
42 (\fIwrite-back: yes\fR)
43 .SS Processing directives
46 \fB-indent\fR, \fB-i\fR
47 indent element content
50 \fB-wrap <column>\fR, \fB-w <column>\fR
51 wrap text at the specified <column>. 0 is assumed if <column> is
52 missing. When this option is omitted, the default of the configuration
53 option "wrap" applies.
54 (\fIwrap: <column>\fR)
56 \fB-upper\fR, \fB-u\fR
57 force tags to upper case
58 (\fIuppercase-tags: yes\fR)
60 \fB-clean\fR, \fB-c\fR
61 replace FONT, NOBR and CENTER tags by CSS
65 strip out smart quotes and em dashes, etc.
68 \fB-numeric\fR, \fB-n\fR
69 output numeric rather than named entities
70 (\fInumeric-entities: yes\fR)
72 \fB-errors\fR, \fB-e\fR
76 \fB-quiet\fR, \fB-q\fR
77 suppress nonessential output
81 omit optional end tags
82 (\fIhide-endtags: yes\fR)
85 specify the input is well formed XML
86 (\fIinput-xml: yes\fR)
88 \fB-asxml\fR, \fB-asxhtml\fR
89 convert HTML to well formed XHTML
90 (\fIoutput-xhtml: yes\fR)
93 force XHTML to well formed HTML
94 (\fIoutput-html: yes\fR)
97 do additional accessibility checks (<level> = 0, 1, 2, 3). 0 is assumed
98 if <level> is missing.
99 (\fIaccessibility-check: <level>\fR)
100 .SS Character encodings
104 output values above 127 without conversion to entities
108 use ISO-8859-1 for input, US-ASCII for output
112 use ISO-8859-15 for input, US-ASCII for output
116 use ISO-8859-1 for both input and output
120 use ISO-2022 for both input and output
124 use UTF-8 for both input and output
128 use MacRoman for input, US-ASCII for output
132 use Windows-1252 for input, US-ASCII for output
136 use IBM-858 (CP850+Euro) for input, US-ASCII for output
140 use UTF-16LE for both input and output
144 use UTF-16BE for both input and output
148 use UTF-16 for both input and output
152 use Big5 for both input and output
156 use Shift_JIS for both input and output
159 \fB-language <lang>\fR
160 set the two-letter language code <lang> (for future use)
161 (\fIlanguage: <lang>\fR)
165 \fB-version\fR, \fB-v\fR
166 show the version of Tidy
169 \fB-help\fR, \fB-h\fR, \fB-?\fR
170 list the command line options
174 list the command line options in XML format
178 list all configuration options
182 list all configuration options in XML format
186 list the current configuration settings
190 Use \fB--\fR\fIoptionX valueX\fR for the detailed configuration option
191 "optionX" with argument "valueX". See also below under \fBDetailed
192 Configuration Options\fR as to how to conveniently group all such
193 options in a single config file.
195 Input/Output default to stdin/stdout respectively. Single letter
196 options apart from \fB-f\fR and \fB-o\fR may be combined as in:
199 \fBtidy -f errs.txt -imu foo.html\fR
201 For further info on HTML see \fIhttp://www.w3.org/MarkUp\fR.
203 For more information about HTML Tidy, visit the project home page at
204 \fIhttp://tidy.sourceforge.net\fR. Here, you will find links to
205 documentation, mailing lists (with searchable archives) and links to
210 Name of the default configuration file. This should be an absolute
211 path, since you will probably invoke \fBtidy\fR from different
212 directories. The value of HTML_TIDY will be parsed after the
213 compiled-in default (defined with -DTIDY_CONFIG_FILE), but before any
214 of the files specified using \fB-config\fR.
217 All input files were processed successfully.
223 .SH ______________________________
225 .SH "DETAILED CONFIGURATION OPTIONS"
226 This section describes the Detailed (i.e., "expanded") Options, which
227 may be specified by preceding each option with \fB--\fR at the command
228 line, followed by its desired value, OR by placing the options and
229 values in a configuration file, and telling tidy to read that file with
230 the \fB-config\fR standard option.
232 \fBtidy --\fR\fIoption1 \fRvalue1 \fB--\fIoption2 \fRvalue2 [standard
235 \fBtidy -config \fIconfig-file \fR[standard options ...]
237 The options detailed here do not include the "standard" command-line
238 options (i.e., those preceded by a single '\fB-\fR') described above in
239 the first section of this man page.
241 A list of options for configuring the behavior of Tidy, which can be
242 passed either on the command line, or specified in a configuration
245 A Tidy configuration file is simply a text file, where each option
246 is listed on a separate line in the form
249 \fBoption1\fR: \fIvalue1\fR
251 \fBoption2\fR: \fIvalue2\fR
255 The permissible values for a given option depend on the option's
256 \fBType\fR. There are five types: \fIBoolean\fR, \fIAutoBool\fR,
257 \fIDocType\fR, \fIEnum\fR, and \fIString\fR. Boolean types allow any of
258 \fIyes/no, y/n, true/false, t/f, 1/0\fR. AutoBools allow \fIauto\fR in
259 addition to the values allowed by Booleans. Integer types take
260 non-negative integers. String types generally have no defaults, and
261 you should provide them in non-quoted form (unless you wish the output
262 to contain the literal quotes).
264 Enum, Encoding, and DocType "types" have a fixed repertoire of items;
265 consult the \fIExample\fR[s] provided below for the option[s] in
268 You only need to provide options and values for those whose defaults
269 you wish to override, although you may wish to include some
270 already-defaulted options and values for the sake of documentation and
273 Here is a sample config file, with at least one example of each of the
277 // sample Tidy configuration options
284 repeated-attributes: keep-last
288 Below is a summary and brief description of each of the options. They
289 are listed alphabetically within each category. There are five
290 categories: \fIHTML, XHTML, XML\fR options, \fIDiagnostics\fR options,
291 \fIPretty Print\fR options, \fICharacter Encoding\fR options, and
292 \fIMiscellaneous\fR options.
296 .SS HTML, XHTML, XML options:
305 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
307 This option specifies if Tidy should add the XML declaration when
308 outputting XML or XHTML. Note that if the input already includes an
309 <?xml ... ?> declaration then this option will be ignored. If the
310 encoding for the output is different from "ascii", one of the utf
311 encodings or "raw", the declaration is always added as required by the
316 \fBSee also\fR: \fIchar-encoding\fR, \fIoutput-encoding\fR
324 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
326 This option specifies if Tidy should add xml:space="preserve" to
327 elements such as <PRE>, <STYLE> and <SCRIPT> when generating XML. This
328 is needed if the whitespace in such elements is to be parsed
329 appropriately without having access to the DTD.
339 This option specifies the default "alt=" text Tidy uses for <IMG>
340 attributes. This feature is dangerous as it suppresses further
341 accessibility warnings. You are responsible for making your documents
342 accessible to people who can not see the images!
344 \fBassume-xml-procins\fR
350 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
352 This option specifies if Tidy should change the parsing of processing
353 instructions to require ?> as the terminator rather than >. This option
354 is automatically set if the input is in XML.
362 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
364 This option specifies if Tidy should strip Microsoft specific HTML from
365 Word 2000 documents, and output spaces rather than non-breaking spaces
366 where they exist in the input.
374 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
376 This option specifies if Tidy should strip out surplus presentational
377 tags and attributes replacing them by style rules and structural markup
378 as appropriate. It works well on the HTML saved by Microsoft Office
389 This option specifies the prefix that Tidy uses for styles rules. By
390 default, "c" will be used.
398 Example: \fIomit, auto, strict, transitional, user\fR
400 This option specifies the DOCTYPE declaration generated by Tidy. If set
401 to "omit" the output won't contain a DOCTYPE declaration. If set to
402 "auto" (the default) Tidy will use an educated guess based upon the
403 contents of the document. If set to "strict", Tidy will set the DOCTYPE
404 to the strict DTD. If set to "loose", the DOCTYPE is set to the loose
405 (transitional) DTD. Alternatively, you can supply a string for the
406 formal public identifier (FPI).
412 doctype: "-//ACME//DTD HTML 3.14159//EN"
416 If you specify the FPI for an XHTML document, Tidy will set the system
417 identifier to the empty string. For an HTML document, Tidy adds a
418 system identifier only if one was already present in order to preserve
419 the processing mode of some browsers. Tidy leaves the DOCTYPE for
420 generic XML documents unchanged. \fI--doctype omit\fR implies
421 \fI--numeric-entities yes\fR.
423 \fBdrop-empty-paras\fR
429 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
431 This option specifies if Tidy should discard empty paragraphs.
439 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
441 This option specifies if Tidy should discard <FONT> and <CENTER> tags
442 without creating the corresponding style rules. This option can be set
443 independently of the clean option.
445 \fBdrop-proprietary-attributes\fR
451 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
453 This option specifies if Tidy should strip out proprietary attributes,
454 such as MS data binding attributes.
456 \fBenclose-block-text\fR
462 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
464 This option specifies if Tidy should insert a <P> element to enclose
465 any text it finds in any element that allows mixed content for HTML
466 transitional but not HTML strict.
474 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
476 This option specifies if Tidy should enclose any text it finds in the
477 body element within a <P> element. This is useful when you want to take
478 existing HTML and use it with a style sheet.
486 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
488 This option specifies if Tidy should convert <![CDATA[]]> sections to
497 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
499 This option specifies if Tidy should replace backslash characters
500 "\fI\\\fR" in URLs by forward slashes "\fI/\fR".
502 \fBfix-bad-comments\fR
508 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
510 This option specifies if Tidy should replace unexpected hyphens with
511 "=" characters when it comes across adjacent hyphens. The default is
512 yes. This option is provided for users of Cold Fusion which uses the
513 comment syntax: <!--- --->
521 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
523 This option specifies if Tidy should check attribute values that carry
524 URIs for illegal characters and if such are found, escape them as HTML
533 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
535 This option specifies if Tidy should print out comments.
543 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
545 This option specifies if Tidy should omit optional end-tags when
546 generating the pretty printed markup. This option is ignored if you are
555 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
557 This option specifies if Tidy should indent <![CDATA[]]> sections.
565 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
567 This option specifies if Tidy should use the XML parser rather than the
568 error correcting HTML parser.
576 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
578 This option specifies if Tidy should combine class names to generate a
579 single new class name, if multiple class assignments are detected on an
584 \fBSee also\fR: \fIjoin-styles\fR, \fIrepeated-attributes\fR
592 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
594 This option specifies if Tidy should combine styles to generate a
595 single new style, if multiple style values are detected on an element.
599 \fBSee also\fR: \fIjoin-classes\fR, \fIrepeated-attributes\fR
601 \fBliteral-attributes\fR
607 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
609 This option specifies if Tidy should ensure that whitespace characters
610 within attribute values are passed through unchanged.
612 \fBlogical-emphasis\fR
618 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
620 This option specifies if Tidy should replace any occurrence of <I> by
621 <EM> and any occurrence of <B> by <STRONG>. In both cases, the
622 attributes are preserved unchanged. This option can be set
623 independently of the clean and drop-font-tags options.
631 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
633 This option specifies if Tidy should convert the value of an attribute
634 that takes a list of predefined values to lower case. This is required
643 Example: \fIauto, y/n, yes/no, t/f, true/false, 1/0\fR
645 Can be used to modify behavior of -c (--clean yes) option. This option
646 specifies if Tidy should merge nested <div> such as
647 "<div><div>...</div></div>". If set to "auto", the attributes of the
648 inner <div> are moved to the outer one. As well, nested <div> with ID
649 attributes are not merged. If set to "yes", the attributes of the inner
650 <div> are discarded with the exception of "class" and "style".
654 \fBSee also\fR: \fIclean\fR
662 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
664 This option specifies if Tidy should allow numeric character
667 \fBnew-blocklevel-tags\fR
669 Type: \fITag names\fR
673 Example: \fItagX, tagY, ...\fR
675 This option specifies new block-level tags. This option takes a space
676 or comma separated list of tag names. Unless you declare new tags, Tidy
677 will refuse to generate a tidied file if the input includes previously
678 unknown tags. Note you can't change the content model for elements such
679 as <TABLE>, <UL>, <OL> and <DL>.
683 \fBSee also\fR: \fInew-empty-tags\fR, \fInew-inline-tags\fR,
688 Type: \fITag names\fR
692 Example: \fItagX, tagY, ...\fR
694 This option specifies new empty inline tags. This option takes a space
695 or comma separated list of tag names. Unless you declare new tags, Tidy
696 will refuse to generate a tidied file if the input includes previously
697 unknown tags. Remember to also declare empty tags as either inline or
702 \fBSee also\fR: \fInew-blocklevel-tags\fR, \fInew-inline-tags\fR,
705 \fBnew-inline-tags\fR
707 Type: \fITag names\fR
711 Example: \fItagX, tagY, ...\fR
713 This option specifies new non-empty inline tags. This option takes a
714 space or comma separated list of tag names. Unless you declare new
715 tags, Tidy will refuse to generate a tidied file if the input includes
716 previously unknown tags.
720 \fBSee also\fR: \fInew-blocklevel-tags\fR, \fInew-empty-tags\fR,
725 Type: \fITag names\fR
729 Example: \fItagX, tagY, ...\fR
731 This option specifies new tags that are to be processed in exactly the
732 same way as HTML's <PRE> element. This option takes a space or comma
733 separated list of tag names. Unless you declare new tags, Tidy will
734 refuse to generate a tidied file if the input includes previously
735 unknown tags. Note you can not as yet add new CDATA elements (similar
740 \fBSee also\fR: \fInew-blocklevel-tags\fR, \fInew-empty-tags\fR,
741 \fInew-inline-tags\fR
743 \fBnumeric-entities\fR
749 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
751 This option specifies if Tidy should output entities other than the
752 built-in HTML entities (&, <, > and ") in the numeric
753 rather than the named entity form.
757 \fBSee also\fR: \fIdoctype\fR
765 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
767 This option specifies if Tidy should generate pretty printed output,
776 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
778 This option specifies if Tidy should generate pretty printed output,
779 writing it as extensible HTML. This option causes Tidy to set the
780 DOCTYPE and default namespace as appropriate to XHTML. If a DOCTYPE or
781 namespace is given they will checked for consistency with the content
782 of the document. In the case of an inconsistency, the corrected values
783 will appear in the output. For XHTML, entities can be written as named
784 or numeric entities according to the setting of the "numeric-entities"
785 option. The original case of tags and attributes will be preserved,
786 regardless of other options.
794 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
796 This option specifies if Tidy should pretty print output, writing it as
797 well-formed XML. Any entities not defined in XML 1.0 will be written as
798 numeric entities to allow them to be parsed by a XML parser. The
799 original case of tags and attributes will be preserved, regardless of
802 \fBquote-ampersand\fR
808 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
810 This option specifies if Tidy should output unadorned & characters as
819 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
821 This option specifies if Tidy should output " characters as " as
822 is preferred by some editing environments. The apostrophe character '
823 is written out as ' since many web browsers don't yet support
832 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
834 This option specifies if Tidy should output non-breaking space
835 characters as entities, rather than as the Unicode character value 160
838 \fBrepeated-attributes\fR
842 Default: \fIkeep-last\fR
844 Example: \fIkeep-first, keep-last\fR
846 This option specifies if Tidy should keep the first or last attribute,
847 if an attribute is repeated, e.g. has two align attributes.
851 \fBSee also\fR: \fIjoin-classes\fR, \fIjoin-styles\fR
859 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
861 This option specifies if Tidy should replace numeric values in color
862 attributes by HTML/XHTML color names where defined, e.g. replace
863 "#ffffff" with "white".
871 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
873 This option specifies if Tidy should print only the contents of the
874 body tag as an HTML fragment. Useful for incorporating existing whole
875 pages as a portion of another page.
877 \fBuppercase-attributes\fR
883 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
885 This option specifies if Tidy should output attribute names in upper
886 case. The default is no, which results in lower case attribute names,
887 except for XML input, where the original case is preserved.
895 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
897 This option specifies if Tidy should output tag names in upper case.
898 The default is no, which results in lower case tag names, except for
899 XML input, where the original case is preserved.
907 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
909 This option specifies if Tidy should go to great pains to strip out all
910 the surplus stuff Microsoft Word 2000 inserts when you save Word
911 documents as "Web pages". Doesn't handle embedded images or VML. You
912 should consider using Word's "Save As: Web Page, Filtered".
913 .SS Diagnostics options:
916 \fBaccessibility-check\fR
920 Default: \fI0 (Tidy Classic)\fR
922 Example: \fI0 (Tidy Classic), 1 (Priority 1 Checks), 2 (Priority 2
923 Checks), 3 (Priority 3 Checks)\fR
925 This option specifies what level of accessibility checking, if any,
926 that Tidy should do. Level 0 is equivalent to Tidy Classic's
927 accessibility checking. For more information on Tidy's accessibility
928 checking, visit the Adaptive Technology Resource Centre at the
929 University of Toronto at
930 \fIhttp://www.aprompt.ca/Tidy/accessibilitychecks.html\fR.
938 Example: \fI0, 1, 2, ...\fR
940 This option specifies the number Tidy uses to determine if further
941 errors should be shown. If set to 0, then no errors are shown.
949 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
951 This option specifies if Tidy should suppress warnings. This can be
952 useful when a few errors are hidden in a flurry of warnings.
953 .SS Pretty Print options:
956 \fBbreak-before-br\fR
962 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
964 This option specifies if Tidy should output a line break before each
973 Example: \fIauto, y/n, yes/no, t/f, true/false, 1/0\fR
975 This option specifies if Tidy should indent block-level tags. If set to
976 "auto", this option causes Tidy to decide whether or not to indent the
977 content of tags such as TITLE, H1-H6, LI, TD, TD, or P depending on
978 whether or not the content includes a block-level element. You are
979 advised to avoid setting indent to yes as this can expose layout bugs
984 \fBSee also\fR: \fIindent-spaces\fR
986 \fBindent-attributes\fR
992 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
994 This option specifies if Tidy should begin each attribute on a new
1003 Example: \fI0, 1, 2, ...\fR
1005 This option specifies the number of spaces Tidy uses to indent content,
1006 when indentation is enabled.
1010 \fBSee also\fR: \fIindent\fR
1018 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
1020 This option specifies if Tidy should generate a pretty printed version
1021 of the markup. Note that Tidy won't generate a pretty printed version
1022 if it finds significant errors (see force-output).
1024 \fBpunctuation-wrap\fR
1030 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
1032 This option specifies if Tidy should line wrap after some Unicode or
1033 Chinese punctuation characters.
1041 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
1043 Currently not used. Tidy Classic only.
1051 Example: \fI0, 1, 2, ...\fR
1053 This option specifies the number of columns that Tidy uses between
1054 successive tab stops. It is used to map tabs to spaces when reading the
1055 input. Tidy never outputs tabs.
1057 \fBvertical-space\fR
1063 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
1065 This option specifies if Tidy should add some empty lines for
1074 Example: \fI0 (no wrapping), 1, 2, ...\fR
1076 This option specifies the right margin Tidy uses for line wrapping.
1077 Tidy tries to wrap lines so that they do not exceed this length. Set
1078 wrap to zero if you want to disable line wrapping.
1086 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
1088 This option specifies if Tidy should line wrap text contained within
1089 ASP pseudo elements, which look like: <% ... %>.
1091 \fBwrap-attributes\fR
1097 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
1099 This option specifies if Tidy should line wrap attribute values, for
1100 easier editing. This option can be set independently of
1101 wrap-script-literals.
1105 \fBSee also\fR: \fIwrap-script-literals\fR
1113 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
1115 This option specifies if Tidy should line wrap text contained within
1116 JSTE pseudo elements, which look like: <# ... #>.
1124 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
1126 This option specifies if Tidy should line wrap text contained within
1127 PHP pseudo elements, which look like: <?php ... ?>.
1129 \fBwrap-script-literals\fR
1135 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
1137 This option specifies if Tidy should line wrap string literals that
1138 appear in script attributes. Tidy wraps long script string literals by
1139 inserting a backslash character before the line break.
1143 \fBSee also\fR: \fIwrap-attributes\fR
1151 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
1153 This option specifies if Tidy should line wrap text contained within
1154 <![ ... ]> section tags.
1155 .SS Character Encoding options:
1164 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
1166 Can be used to modify behavior of -c (--clean yes) option. If set to
1167 "yes" when using -c, &emdash;, ”, and other named character
1168 entities are downgraded to their closest ascii equivalents.
1172 \fBSee also\fR: \fIclean\fR
1176 Type: \fIEncoding\fR
1178 Default: \fIascii\fR
1180 Example: \fIraw, ascii, latin0, latin1, utf8, iso2022, mac, win1252,
1181 ibm858, utf16le, utf16be, utf16, big5, shiftjis\fR
1183 This option specifies the character encoding Tidy uses for both the
1184 input and output. For ascii, Tidy will accept Latin-1 (ISO-8859-1)
1185 character values, but will use entities for all characters whose value
1186 > 127. For raw, Tidy will output values above 127 without translating
1187 them into entities. For latin1, characters above 255 will be written as
1188 entities. For utf8, Tidy assumes that both input and output is encoded
1189 as UTF-8. You can use iso2022 for files encoded using the ISO-2022
1190 family of encodings e.g. ISO-2022-JP. For mac and win1252, Tidy will
1191 accept vendor specific character values, but will use entities for all
1192 characters whose value > 127.
1196 \fBSee also\fR: \fIinput-encoding\fR, \fIoutput-encoding\fR
1198 \fBinput-encoding\fR
1200 Type: \fIEncoding\fR
1202 Default: \fIlatin1\fR
1204 Example: \fIraw, ascii, latin0, latin1, utf8, iso2022, mac, win1252,
1205 ibm858, utf16le, utf16be, utf16, big5, shiftjis\fR
1207 This option specifies the character encoding Tidy uses for the input.
1208 See char-encoding for more info.
1212 \fBSee also\fR: \fIchar-encoding\fR
1222 Currently not used, but this option specifies the language Tidy uses
1223 (for instance "en").
1229 Default: \fI\fIPlatform dependent\fR\fR
1231 Example: \fILF, CRLF, CR\fR
1233 The default is appropriate to the current platform: CRLF on PC-DOS,
1234 MS-Windows and OS/2, CR on Classic Mac OS, and LF everywhere else (Unix
1239 Type: \fIAutoBool\fR
1243 Example: \fIauto, y/n, yes/no, t/f, true/false, 1/0\fR
1245 This option specifies if Tidy should write a Unicode Byte Order Mark
1246 character (BOM; also known as Zero Width No-Break Space; has value of
1247 U+FEFF) to the beginning of the output; only for UTF-8 and UTF-16
1248 output encodings. If set to "auto", this option causes Tidy to write a
1249 BOM to the output only if a BOM was present at the beginning of the
1250 input. A BOM is always written for XML/XHTML output using UTF-16 output
1253 \fBoutput-encoding\fR
1255 Type: \fIEncoding\fR
1257 Default: \fIascii\fR
1259 Example: \fIraw, ascii, latin0, latin1, utf8, iso2022, mac, win1252,
1260 ibm858, utf16le, utf16be, utf16, big5, shiftjis\fR
1262 This option specifies the character encoding Tidy uses for the output.
1263 See char-encoding for more info. May only be different from
1264 input-encoding for Latin encodings (ascii, latin0, latin1, mac,
1269 \fBSee also\fR: \fIchar-encoding\fR
1270 .SS Miscellaneous options:
1281 This option specifies the error file Tidy uses for errors and warnings.
1282 Normally errors and warnings are output to "stderr".
1286 \fBSee also\fR: \fIoutput-file\fR
1294 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
1296 This option specifies if Tidy should produce output even if errors are
1297 encountered. Use this option with care - if Tidy reports an error, this
1298 means Tidy was not able to, or is not sure how to, fix the error, so
1299 the resulting output may not reflect your intention.
1307 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
1309 This option specifies if Tidy should change the format for reporting
1310 errors and warnings to a format that is more easily parsed by GNU
1313 \fBgnu-emacs-file\fR
1329 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
1331 This option specifies if Tidy should keep the original modification
1332 time of files that Tidy modifies in place. The default is no. Setting
1333 the option to yes allows you to tidy files without causing these files
1334 to be uploaded to a web server when using a tool such as SiteCopy. Note
1335 this feature is not supported on some platforms.
1345 This option specifies the output file Tidy uses for markup. Normally
1346 markup is written to "stdout".
1350 \fBSee also\fR: \fIerror-file\fR
1358 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
1360 This option specifies if Tidy should output the summary of the numbers
1361 of errors and warnings, or the welcome or informational messages.
1371 Currently not used. Tidy Classic only.
1379 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
1381 This option specifies if Tidy should add a meta element to the document
1382 head to indicate that the document has been tidied. Tidy won't add a
1383 meta element if one is already present.
1391 Example: \fIy/n, yes/no, t/f, true/false, 1/0\fR
1393 This option specifies if Tidy should write back the tidied markup to
1394 the same file it read from. You are advised to keep copies of important
1395 files before tidying them, as on rare occasions the result may not be
1398 HTML Tidy Project Page at \fIhttp://tidy.sourceforge.net\fR
1400 \fBTidy\fR was written by Dave Raggett <\fIdsr@w3.org\fR>, and is now
1401 maintained and developed by the Tidy team at
1402 \fIhttp://tidy.sourceforge.net/\fR. It is released under the \fIMIT
1405 Generated automatically with HTML Tidy released on 1 September 2005.