Yes
axd
<?xml version="1.0"?>
<note>
<to>George</to>
<from>John</from>
</note>
No
<note>
<to>George</to>
<from>John</from>
</note>
Yes
axs
// with Output xml
<pre xml:space="preserve">
George
John
George John
</pre>
No
<pre>
George
John
George John
</pre>
Text
*Do not include '-' character
at
Alt text=Missing
<img src="/i/eg_tulip.jpg" />
==>
<img src="/i/eg_tulip.jpg" alt="Missing" />
Yes
aan
<a id="tips" name="tips">John</a>
No
<a id="tips">John</a>
Yes
axp
Change the parsing of processing instructions to require ?> as the terminator rather than >
No
No change the parsing of processing instructions to require ?> as the terminator rather than >
Yes
b
Strip Microsoft specific HTML from Word 2000 documents
No
No strip Microsoft specific HTML from Word 2000 documents
Yes
c
Strip out surplus presentational tags and attributes replacing them by style rules and structural markup as appropriate
No
No strip out surplus presentational tags and attributes replacing them by style rules and structural markup as appropriate
Yes
cet
<span>foo <b>bar</b> baz</span>
No
<span>foo <b>bar<b> baz</span>
Text
*Do not include '-' character
cp
Specifies the prefix that Tidy uses for styles rules
Yes
diu
Specifies if Tidy should decorate inferred UL elements with some CSS markup to avoid indentation to the right
No
No specifies if Tidy should decorate inferred UL elements with some CSS markup to avoid indentation to the right
Omit
d0
<html xmlns="http://www.w3.org/1999/xhtml">
Auto
d1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Strict
d2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Transitional
d3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
User
d4
use Doctype User
Html5
d5
<!DOCTYPE html>
Text
*Do not include '-' character
du
"-//ACME//DTD HTML 3.14159//EN"
Yes
dee
<span>foo baz</span>
No
<span>foo <b></b> baz</span>
Yes
dep
<p>This is some text</p>
No
<p>This is some text</p>
<p></p>
Yes
dft
This is some text!This is some text!<br />
No
<font size="3" color="red">This is some text!</font>
<center>This is some text!</center>
Yes
dpa
<form>
<input type="text">
</form>
No
<form>
<input type="text" hidefocus="on">
</form>
Yes
ebt
<p>This is some text!</p>
No
This is some text!
Yes
et
<p>This is some text!</p>
No
This is some text!
Yes
ec
<note>This is some text</note>
No
<note>
<![CDATA[This is some text]]>
</note>
Yes
fb
<img src="/i/eg_tulip.jpg" />
No
<img src="\i\eg_tulip.jpg" />
Yes
fbc
Replace unexpected hyphens with "=" characters when it comes across adjacent hyphens
No
No replace unexpected hyphens with "=" characters when it comes across adjacent hyphens
Yes
fu
<img src="/i/eg%20tulip.jpg" />
No
<img src="/i/eg tulip.jpg" />
Yes
gdc
This option specifies if Tidy should enable specific behavior for cleaning up HTML exported from Google Docs.
No
Yes
hc
<note>abc</note>
No
<!-- This is some text -->
<note>abc</note>
Yes
he
Omit optional end-tags when generating the pretty printed markup
No
No omit optional end-tags when generating the pretty printed markup
Yes
ic
Indent <![CDATA[]]> sections
No
No indent <![CDATA[]]> sections
Yes
ix
Use the XML parser
No
No use the XML parser
Yes
jc
<h1 class="intro important">Header 1</h1>
No
<h1 class="intro" class="important">Header 1</h1>
Yes
js
<h1 style="color:red; text-align:center;">This is a header</h1>
No
<h1 style="color:red;" style="text-align:center;">This is a header</h1>
Yes
la
<h1 style="color:red; text-align:center;">This is a header</h1>
No
<h1 style="color:red; text-align:center;">This is a header</h1>
Yes
le
<strong>This is some text</strong>
<em>This is some text</em>
No
<b>This is some text</b>
<i>This is some text</i>
Yes
ll
<p align="right">This is some text</p>
No
<p align="Right">This is some text</p>
Auto
md0
<div>
This is some text
</div>
Yes
md1
<div>
This is some text
</div>
No
md2
<div>
<div>
This is some text
</div>
</div>
Yes
me
<b class="rtop-2">foo bar baz</b>.
No
<b class="rtop-2">foo <b class="r2-2">bar</b> baz</b>
Auto
ms0
<span>
This is some text
</span>
Yes
ms1
<span>
This is some text
</span>
No
ms2
<span>
<span>
This is some text
</span>
</span>
Yes
n
Allow numeric character references
No
No allow numeric character references
Text
*Do not include '-' character
nbt
// ql we
<ql>
<we>This is some text</we>
</ql>
Text
*Do not include '-' character
net
// ql
<ql />
Text
*Do not include '-' character
nit
// ql
<ql></ql>
Text
*Do not include '-' character
npt
// ql
<ql>
This is some text
</ql>
Yes
ne
<q>À</q>
No
<q>À</q>
Yes
oot
This option specifies if Tidy should omit optional start tags and end tags when generating output.
No
Yes
oh
Generate pretty printed output, writing it as HTML
No
Yes
ox
Generate pretty printed output, writing it as extensible HTML
No
Yes
oxm
Pretty print output, writing it as well-formed XML
No
Yes
pe
<q>À</q>
No
// with Numeric entities
<q>À</q>
Yes
qa
<q>&</q>
No
<q>&</q>
Yes
qm
<q>''""</q>
No
<q>''""</q>
Yes
qn
<p> </p>
No
<p> </p>
Keep first
ra0
<h1 style="color:red;" style="color:blue;">This is a header</h1>
=>
<h1 style="color:red;">This is a header</h1>
Keep last
ra1
<h1 style="color:red;" style="color:blue;">This is a header</h1>
=>
<h1 style="color:blue;">This is a header</h1>
Yes
rc
<font color="white">This is some text!</font>
No
<font color="#FFFFFF">This is some text!</font>
Auto
sbo0
// this is performed only if the body tag has been inferred
<p>This is some text!</p>
Yes
sbo1
<p>This is some text!</p>
No
sbo2
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<p>This is some text!</p>
</body>
</html>
Yes
sn
This option specifies that Tidy should skip nested tags when parsing script and style data.
No
Yes
sta
This options ensures that tags and attributes are applicable for the version of HTML that Tidy outputs.
No
Yes
ua
<p STYLE="color:red">This is a paragraph.</p>
No
<p style="color:red">This is a paragraph.</p>
Yes
ut
<P style="color:red">This is a paragraph.</P>
No
<p style="color:red">This is a paragraph.</p>
Yes
wo
Go to great pains to strip out all the surplus stuff Microsoft Word 2000 inserts when you save Word documents as "Web pages"
No
Yes
bbb
123
<br />
123
<br />
No
123<br />
123<br />
Yes
es
This option causes items that look like closing tags, like </g to be escaped to <\/g. Set this option to 'no' if you do not want this.
No
Auto
i0
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Yes
i1
<ol>
<li>Coffee
</li>
<li>Tea
</li>
<li>Milk
</li>
</ol>
No
i2
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Yes
ia
<font size="3"
color="red">This is some text!</font>
No
<font size="3" color="red">This is some text!</font>
Range : 0-100
is
//Indent spaces 3
<ol>
<li>Coffee</li>
</ol>
//Indent spaces 2
<ol>
<li>Coffee</li>
</ol>
Yes
tb
<ol>
--->---><li>Coffee</li>
</ol>
No
<ol>
**<li>Coffee</li>
</ol>
Yes
m
Generate a pretty printed version of the markup
No
Yes
pw
Line wrap after some Unicode or Chinese punctuation characters
No
No line wrap after some Unicode or Chinese punctuation characters
None
sa0
<font size="3" color="red">This is some text!</font>
Alpha
sa1
<font color="red" size="3">This is some text!</font>
Range : 0-100
ts
Specifies the number of columns that Tidy uses between successive tab stops
Yes
vs
<p>This is some text</p>
<p>This is some text</p>
No
<p>This is some text</p>
<p>This is some text</p>
Range : 0-100
w
//Wrap 10
<p>This
is some
text</p>
//Wrap 0
<p>This is some text</p>
Yes
wa
Line wrap text contained within ASP pseudo elements, which look like: <% ... %>
No
No line wrap text contained within ASP pseudo elements, which look like: <% ... %>
Yes
wat
Line wrap attribute values, for easier editing
No
No line wrap attribute values, for easier editing
Yes
wj
Line wrap text contained within JSTE pseudo elements, which look like: <# ... #>
No
No line wrap text contained within JSTE pseudo elements, which look like: <# ... #>
Yes
wp
Line wrap text contained within PHP pseudo elements, which look like: <?php ... ?>
No
No line wrap text contained within PHP pseudo elements, which look like: <?php ... ?>
Yes
wsl
Line wrap string literals that appear in script attributes
No
No line wrap string literals that appear in script attributes
Yes
ws
Line wrap text contained within <![ ... ]> section tags
No
No line wrap text contained within <![ ... ]> section tags
Yes
ac
Can be used to modify behavior of -c (--clean yes) option. If set to "yes" when using -c, &emdash;, ”, and other named character entities are downgraded to their closest ascii equivalents
No
Raw
ce0
Tidy will output values above 127 without translating them into entities
Ascii
ce1
Tidy will accept Latin-1 (ISO-8859-1) character values, but will use entities for all characters whose value > 127
latin0
ce2
latin1
ce3
Characters above 255 will be written as entities
utf8
ce4
Tidy assumes that both input and output is encoded as UTF-8
iso2022
ce5
mac
ce6
win1252
ce7
ibm858
ce8
utf16le
ce9
utf16be
ce10
utf16
ce10
big5
ce11
shiftjis
ce12
Raw
ie0
Tidy will output values above 127 without translating them into entities
Ascii
ie1
Tidy will accept Latin-1 (ISO-8859-1) character values, but will use entities for all characters whose value > 127
latin0
ie2
latin1
ie3
Characters above 255 will be written as entities
utf8
ie4
Tidy assumes that both input and output is encoded as UTF-8
iso2022
ie5
mac
ie6
win1252
ie7
ibm858
ie8
utf16le
ie9
utf16be
ie10
utf16
ie11
big5
ie12
shiftjis
ie13
Raw
oe0
Tidy will output values above 127 without translating them into entities
Ascii
oe1
Tidy will accept Latin-1 (ISO-8859-1) character values, but will use entities for all characters whose value > 127
latin0
oe2
latin1
oe3
Characters above 255 will be written as entities
utf8
oe4
Tidy assumes that both input and output is encoded as UTF-8
iso2022
oe5
mac
oe6
win1252
oe7
ibm858
oe8
utf16le
oe9
utf16be
oe10
utf16
oe11
big5
oe12
shiftjis
oe13
Range : 0-100
se
Specifies the number Tidy uses to determine if further errors should be shown
Yes
si
This option specifies if Tidy should display info-level messages.
No
Yes
sw
Specifies if Tidy should suppress warnings
No
No specifies if Tidy should suppress warnings
Yes
fo
Specifies if Tidy should produce output even if errors are encountered
No
No specifies if Tidy should produce output even if errors are encountered