-output, -o file | write output to the specified <file> | help + man |
-config file | set configuration options from the specified <file> | help + man |
-file, -f file | write errors and warnings to the specified <file> | help + man |
-modify, -m (write-back: | modify the original input files | help + man |
-indent, -i (indent: | indent element content | help + man |
-wrap, -w column | wrap text at the specified <column>. | help + man |
-upper, -u (uppercase-tags: | force tags to upper case | help + man |
-clean, -c (clean: | replace FONT, NOBR and CENTER tags with CSS | help + man |
-bare, -b (bare: | strip out smart quotes and em dashes, etc. | help + man |
-gdoc, -g (gdoc: | produce clean version of html exported by Google Docs | help + man |
-numeric, -n (numeric-entities: | output numeric rather than named entities | help + man |
-errors, -e (markup: | show only errors and warnings | help + man |
-quiet, -q (quiet: | suppress nonessential output | help + man |
-omit (omit-optional-tags: | omit optional start tags and end tags | help + man |
-xml (input-xml: | specify the input is well formed XML | help + man |
-asxml, -asxhtml (output-xhtml: | convert HTML to well formed XHTML | help + man |
-ashtml (output-html: | force XHTML to well formed HTML | help + man |
-access level | do additional accessibility checks (<level> = 0, 1, 2, 3). | help + man |
-raw | output values above 127 without conversion to entities | help + man |
-ascii | use ISO-8859-1 for input, US-ASCII for output | help + man |
-latin0 | use ISO-8859-15 for input, US-ASCII for output | help + man |
-latin1 | use ISO-8859-1 for both input and output | help + man |
-iso2022 | use ISO-2022 for both input and output | help + man |
-utf8 | use UTF-8 for both input and output | help + man |
-mac | use MacRoman for input, US-ASCII for output | help + man |
-win1252 | use Windows-1252 for input, US-ASCII for output | help + man |
-ibm858 | use IBM-858 (CP850+Euro) for input, US-ASCII for output | help + man |
-utf16le | use UTF-16LE for both input and output | help + man |
-utf16be | use UTF-16BE for both input and output | help + man |
-utf16 | use UTF-16 for both input and output | help + man |
-big5 | use Big5 for both input and output | help + man |
-shiftjis | use Shift_JIS for both input and output | help + man |
-version, -v | show the version of Tidy | help + man |
-help, -h, -? | list the command line options | help + man |
-help-config | list all configuration options | help + man |
-help-env | show information about the environment and runtime configuration | help + man |
-show-config | list the current configuration settings | help + man |
-export-config | list the current configuration settings, suitable for a config file | help + man |
-export-default-config | list the default configuration settings, suitable for a config file | help + man |
-help-option option | show a description of the <option> | help + man |
-language lang | set Tidy's output language to <lang>. | help + man |
-xml-help | list the command line options in XML format | help + man |
-xml-config | list all configuration options in XML format | help + man |
-xml-strings | output all of Tidy's strings in XML format | help + man |
-xml-error-strings | output error constants and strings in XML format | help + man |
-xml-options-strings | output option descriptions in XML format | help + man |
--gnu-emacs Boolean | This option specifies that Tidy should change the format for reporting errors and warnings to a format that is more easily parsed by GNU Emacs or some other program. (in the manual page but not in --help) | man |
--markup Boolean | This option specifies if Tidy should generate a pretty printed version of the markup. (in the manual page but not in --help) | man |
--mute String | Use this option to prevent Tidy from displaying certain types of report output, for example, for conditions that you wish to ignore. (in the manual page but not in --help) | man |
--mute-id Boolean | This option indicates whether or not Tidy should display message ID's with each of its error reports. (in the manual page but not in --help) | man |
--quiet Boolean | When enabled, this option limits Tidy's non-document output to report only document warnings and errors. (in the manual page but not in --help) | man |
--show-body-only Enum | Supported values: no, yes, auto (in the manual page but not in --help) | man |
--show-errors Integer | This option specifies the number Tidy uses to determine if further errors should be shown. (in the manual page but not in --help) | man |
--show-filename Boolean | This option specifies if Tidy should show the filename in messages. (in the manual page but not in --help) | man |
--show-info Boolean | This option specifies if Tidy should display info-level messages. (in the manual page but not in --help) | man |
--show-warnings Boolean | This option specifies if Tidy should suppress warnings. (in the manual page but not in --help) | man |
--add-meta-charset Boolean | This option, when enabled, adds a <meta> element and sets the charset attribute to the encoding of the document. (in the manual page but not in --help) | man |
--add-xml-decl Boolean | This option specifies if Tidy should add the XML declaration when outputting XML or XHTML. (in the manual page but not in --help) | man |
--add-xml-space Boolean | This option specifies if Tidy should add xml:space="preserve" to elements such as <pre>, <style> and <script> when generating XML. (in the manual page but not in --help) | man |
--doctype String | This option specifies the DOCTYPE declaration generated by Tidy. (in the manual page but not in --help) | man |
--input-xml Boolean | This option specifies if Tidy should use the XML parser rather than the error correcting HTML parser. (in the manual page but not in --help) | man |
--output-html Boolean | This option specifies if Tidy should generate pretty printed output, writing it as HTML. (in the manual page but not in --help) | man |
--output-xhtml Boolean | This option specifies if Tidy should generate pretty printed output, writing it as extensible HTML. (in the manual page but not in --help) | man |
--output-xml Boolean | This option specifies if Tidy should pretty print output, writing it as well-formed XML. (in the manual page but not in --help) | man |
--error-file String | This option specifies the error file Tidy uses for errors and warnings. (in the manual page but not in --help) | man |
--keep-time Boolean | This option specifies if Tidy should keep the original modification time of files that Tidy modifies in place. (in the manual page but not in --help) | man |
--output-file String | This option specifies the output file Tidy uses for markup. (in the manual page but not in --help) | man |
--write-back Boolean | This option specifies if Tidy should write back the tidied markup to the same file it read from. (in the manual page but not in --help) | man |
--accessibility-check Enum | Supported values: 0 (Tidy Classic), 1 (Priority 1 Checks), 2 (Priority 2 Checks), 3 (Priority 3 Checks) (in the manual page but not in --help) | man |
--force-output Boolean | This option specifies if Tidy should produce output even if errors are encountered. (in the manual page but not in --help) | man |
--show-meta-change Boolean | This option enables a message whenever Tidy changes the content attribute of a meta charset declaration to match the encoding of the document. (in the manual page but not in --help) | man |
--warn-proprietary-attributes Boolean | This option specifies if Tidy should warn on proprietary attributes. (in the manual page but not in --help) | man |
--char-encoding Encoding | Supported values: raw, ascii, latin0, latin1, utf8, iso2022, mac, win1252, ibm858, utf16le, utf16be, utf16, big5, shiftjis (in the manual page but not in --help) | man |
--input-encoding Encoding | Supported values: raw, ascii, latin0, latin1, utf8, iso2022, mac, win1252, ibm858, utf16le, utf16be, utf16, big5, shiftjis (in the manual page but not in --help) | man |
--newline Enum | Supported values: LF, CRLF, CR (in the manual page but not in --help) | man |
--output-bom Enum | Supported values: no, yes, auto (in the manual page but not in --help) | man |
--output-encoding Encoding | Supported values: raw, ascii, latin0, latin1, utf8, iso2022, mac, win1252, ibm858, utf16le, utf16be, utf16, big5, shiftjis (in the manual page but not in --help) | man |
--bare Boolean | This option specifies if Tidy should replace smart quotes and em dashes with ASCII, and output spaces rather than non-breaking spaces, where they exist in the input. (in the manual page but not in --help) | man |
--clean Boolean | This option specifies if Tidy should perform cleaning of some legacy presentational tags (currently <i>, <b>, <center> when enclosed within appropriate inline tags, and <font>). (in the manual page but not in --help) | man |
--drop-empty-elements Boolean | This option specifies if Tidy should discard empty elements. (in the manual page but not in --help) | man |
--drop-empty-paras Boolean | This option specifies if Tidy should discard empty paragraphs. (in the manual page but not in --help) | man |
--drop-proprietary-attributes Boolean | This option specifies if Tidy should strip out proprietary attributes, such as Microsoft data binding attributes. (in the manual page but not in --help) | man |
--gdoc Boolean | This option specifies if Tidy should enable specific behavior for cleaning up HTML exported from Google Docs. (in the manual page but not in --help) | man |
--logical-emphasis Boolean | This option specifies if Tidy should replace any occurrence of <i> with <em> and any occurrence of <b> with <strong>. (in the manual page but not in --help) | man |
--merge-divs Enum | Supported values: no, yes, auto (in the manual page but not in --help) | man |
--merge-spans Enum | Supported values: no, yes, auto (in the manual page but not in --help) | man |
--word-2000 Boolean | This option specifies if Tidy should go to great pains to strip out all the surplus stuff Microsoft Word 2000 inserts when you save Word documents as "Web pages". (in the manual page but not in --help) | man |
--ascii-chars Boolean | Can be used to modify behavior of the clean option when set to yes. (in the manual page but not in --help) | man |
--ncr Boolean | This option specifies if Tidy should allow numeric character references. (in the manual page but not in --help) | man |
--numeric-entities Boolean | This option specifies if Tidy should output entities other than the built-in HTML entities (&, <, >, and ") in the numeric rather than the named entity form. (in the manual page but not in --help) | man |
--preserve-entities Boolean | This option specifies if Tidy should preserve well-formed entities as found in the input. (in the manual page but not in --help) | man |
--quote-ampersand Boolean | This option specifies if Tidy should output unadorned & characters as &, in legacy doctypes only. (in the manual page but not in --help) | man |
--quote-marks Boolean | This option specifies if Tidy should output " characters as " as is preferred by some editing environments. (in the manual page but not in --help) | man |
--quote-nbsp Boolean | This option specifies if Tidy should output non-breaking space characters as entities, rather than as the Unicode character value 160 (decimal). (in the manual page but not in --help) | man |
--alt-text String | This option specifies the default alt= text Tidy uses for <img> attributes when the alt= attribute is missing. (in the manual page but not in --help) | man |
--anchor-as-name Boolean | This option controls the deletion or addition of the name attribute in elements where it can serve as anchor. (in the manual page but not in --help) | man |
--assume-xml-procins Boolean | This option specifies if Tidy should change the parsing of processing instructions to require ?> as the terminator rather than >. (in the manual page but not in --help) | man |
--coerce-endtags Boolean | This option specifies if Tidy should coerce a start tag into an end tag in cases where it looks like an end tag was probably intended; (in the manual page but not in --help) | man |
--css-prefix String | This option specifies the prefix that Tidy uses for styles rules. (in the manual page but not in --help) | man |
--custom-tags Enum | Supported values: no, blocklevel, empty, inline, pre (in the manual page but not in --help) | man |
--enclose-block-text Boolean | This option specifies if Tidy should insert a <p> element to enclose any text it finds in any element that allows mixed content for HTML transitional but not HTML strict. (in the manual page but not in --help) | man |
--enclose-text Boolean | This option specifies if Tidy should enclose any text it finds in the body element within a <p> element. (in the manual page but not in --help) | man |
--escape-scripts Boolean | This option causes items that look like closing tags, like </g to be escaped to </g. (in the manual page but not in --help) | man |
--fix-backslash Boolean | This option specifies if Tidy should replace backslash characters in URLs with forward slashes /. (in the manual page but not in --help) | man |
--fix-bad-comments Enum | Supported values: no, yes, auto (in the manual page but not in --help) | man |
--fix-style-tags Boolean | This option specifies if Tidy should move all style tags to the head of the document. (in the manual page but not in --help) | man |
--fix-uri Boolean | This option specifies if Tidy should check attribute values that carry URIs for illegal characters and if such are found, escape them as HTML4 recommends. (in the manual page but not in --help) | man |
--literal-attributes Boolean | This option specifies how Tidy deals with whitespace characters within attribute values. (in the manual page but not in --help) | man |
--lower-literals Boolean | This option specifies if Tidy should convert the value of an attribute that takes a list of predefined values to lower case. (in the manual page but not in --help) | man |
--repeated-attributes Enum | Supported values: keep-first, keep-last (in the manual page but not in --help) | man |
--skip-nested Boolean | This option specifies that Tidy should skip nested tags when parsing script and style data. (in the manual page but not in --help) | man |
--strict-tags-attributes Boolean | This options ensures that tags and attributes are applicable for the version of HTML that Tidy outputs. (in the manual page but not in --help) | man |
--uppercase-attributes Enum | Supported values: no, yes, preserve (in the manual page but not in --help) | man |
--uppercase-tags Boolean | This option specifies if Tidy should output tag names in upper case. (in the manual page but not in --help) | man |
--decorate-inferred-ul Boolean | This option specifies if Tidy should decorate inferred <ul> elements with some CSS markup to avoid indentation to the right. (in the manual page but not in --help) | man |
--escape-cdata Boolean | This option specifies if Tidy should convert <![CDATA[]]> sections to normal text. (in the manual page but not in --help) | man |
--hide-comments Boolean | This option specifies if Tidy should not print out comments. (in the manual page but not in --help) | man |
--join-classes Boolean | This option specifies if Tidy should combine class names to generate a single, new class name if multiple class assignments are detected on an element. (in the manual page but not in --help) | man |
--join-styles Boolean | This option specifies if Tidy should combine styles to generate a single, new style if multiple style values are detected on an element. (in the manual page but not in --help) | man |
--merge-emphasis Boolean | This option specifies if Tidy should merge nested <b> and <i> elements; (in the manual page but not in --help) | man |
--replace-color Boolean | This option specifies if Tidy should replace numeric values in color attributes with HTML/XHTML color names where defined, e.g. replace #ffffff with white. (in the manual page but not in --help) | man |
--new-blocklevel-tags Tag | Supported values: tagX, tagY, ... (in the manual page but not in --help) | man |
--new-empty-tags Tag | Supported values: tagX, tagY, ... (in the manual page but not in --help) | man |
--new-inline-tags Tag | Supported values: tagX, tagY, ... (in the manual page but not in --help) | man |
--new-pre-tags Tag | Supported values: tagX, tagY, ... (in the manual page but not in --help) | man |
--break-before-br Boolean | This option specifies if Tidy should output a line break before each <br> element. (in the manual page but not in --help) | man |
--indent Enum | Supported values: no, yes, auto (in the manual page but not in --help) | man |
--indent-attributes Boolean | This option specifies if Tidy should begin each attribute on a new line. (in the manual page but not in --help) | man |
--indent-cdata Boolean | This option specifies if Tidy should indent <![CDATA[]]> sections. (in the manual page but not in --help) | man |
--indent-spaces Integer | This option specifies the number of spaces or tabs that Tidy uses to indent content when indent is enabled. (in the manual page but not in --help) | man |
--indent-with-tabs Boolean | This option specifies if Tidy should indent with tabs instead of spaces, assuming indent is yes. (in the manual page but not in --help) | man |
--keep-tabs Boolean | With the default no Tidy will replace all source tabs with spaces, controlled by the option tab-size, and the current line offset. (in the manual page but not in --help) | man |
--omit-optional-tags Boolean | This option specifies if Tidy should omit optional start tags and end tags when generating output. (in the manual page but not in --help) | man |
--priority-attributes Attributes | Supported values: attributeX, attributeY, ... (in the manual page but not in --help) | man |
--punctuation-wrap Boolean | This option specifies if Tidy should line wrap after some Unicode or Chinese punctuation characters. (in the manual page but not in --help) | man |
--sort-attributes Enum | Supported values: none, alpha (in the manual page but not in --help) | man |
--tab-size Integer | This option specifies the number of columns that Tidy uses between successive tab stops. (in the manual page but not in --help) | man |
--tidy-mark Boolean | This option specifies if Tidy should add a meta element to the document head to indicate that the document has been tidied. (in the manual page but not in --help) | man |
--vertical-space Enum | Supported values: no, yes, auto (in the manual page but not in --help) | man |
--wrap Integer | This option specifies the right margin Tidy uses for line wrapping. (in the manual page but not in --help) | man |
--wrap-asp Boolean | This option specifies if Tidy should line wrap text contained within ASP pseudo elements, which look like: <% ... (in the manual page but not in --help) | man |
--wrap-attributes Boolean | This option specifies if Tidy should line-wrap attribute values, meaning that if the value of an attribute causes a line to exceed the width specified by wrap, Tidy will add one or more line breaks… (in the manual page but not in --help) | man |
--wrap-jste Boolean | This option specifies if Tidy should line wrap text contained within JSTE pseudo elements, which look like: <# ... (in the manual page but not in --help) | man |
--wrap-php Boolean | This option specifies if Tidy should add a new line after a PHP pseudo elements, which look like: <?php ... (in the manual page but not in --help) | man |
--wrap-script-literals Boolean | This option specifies if Tidy should line wrap string literals assigned to element event handler attributes, such as element.onmouseover(). (in the manual page but not in --help) | man |
--wrap-sections Boolean | This option specifies if Tidy should line wrap text contained within <![ ... (in the manual page but not in --help) | man |