HTML Tidy is a software library whose purpose is to fix invalid HTML. It is enabled on all Wikimedia wikis. Without HTML Tidy, a small percentage of pages will render incorrectly (broken tables; extended bold; horizontal scroll bar; misplaced images), etc. See <ahref="http://xowa.org/wiki/home/page/Diagnostics/HTML_Tidy.html"id="xolnki_2"title="Diagnostics/HTML Tidy"class="xowa-visited">Diagnostics/HTML_Tidy</a> for examples.
For more info about XOWA's customized JTidy jar, see <ahref="http://xowa.org/wiki/home/page/App/Xtn/Mediawiki/Tidy/JTidy.html"id="xolnki_3"title="App/Xtn/Mediawiki/Tidy/JTidy">App/Xtn/Mediawiki/Tidy/JTidy</a>
<spanclass="mbox-text-span">Linux / Mac OS X users:</span>
</p>
<ul>
<li>
<spanclass="mbox-text-span">If you choose to use the tidy binary, please download the appropriate one for your platform from <ahref="http://tidy.sourceforge.net/"rel="nofollow"class="external free">http://tidy.sourceforge.net/</a></span>
</li>
<li>
<spanclass="mbox-text-span">If you enable tidy and XOWA shows no HTML, you will need to disable tidy through a text editor: /xowa/user/anonymous/app/data/cfg/xowa_user_cfg.gfs</span>
<inputxowa_prop="app.html.tidy.lib.cmd"class="options_textbox"style="width: 380px; margin-bottom:2px;"type="xowa_io"id='xowa_prop_2'value='C:\xowa\bin\windows_64\tidy\tidy'><buttonid='xowa_prop_2_io'class='options_button'onclick='xowa_io_select("file", "xowa_prop_2", "Please select a file.");'>...</button>
<p>
<inputxowa_prop="app.html.tidy.lib.args"class="options_textbox"style="width: 380px;"id='xowa_prop_3'value='-utf8 --force-output y --quiet y --tidy-mark n --doctype '' --wrap 0 --indent y --quote-nbsp y --literal-attributes y --wrap-attributes n --fix-uri n --fix-backslash n --enclose-block-text y -o "~{target}" "~{source}"'><supid="cite_ref-engine_tidy_3-0"class="reference"><ahref="#cite_note-engine_tidy-3">[4]</a></sup>
</p>
</td>
</tr>
</table>
<h2>
<spanclass="mw-headline"id="Notes">Notes</span>
</h2>
<olclass="references">
<liid="cite_note-enabled-0">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-enabled_0-0">^</a></span><spanclass="reference-text">Choose if HTML tidy is enabled (default is <code>checked</code>)</span>
</li>
<liid="cite_note-engine_type-1">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-engine_type_1-0">^</a></span><spanclass="reference-text">Choose an HTML tidy engine (default is <code>jtidy</code>)</span>
<ul>
<li>
<spanclass="reference-text"><b><ahref="http://tidy.sourceforge.net/"rel="nofollow"class="external text">tidy</a></b>: The same library that is used by WMF wikis. Choose <code>tidy</code> if you want to run the official tidy library that WM uses. Note that you must download the binary if you are on Linux / Mac OS X.</span>
</li>
<li>
<spanclass="reference-text"><b><ahref="http://jtidy.sourceforge.net/"rel="nofollow"class="external text">jtidy</a></b>: A Java implementation of the tidy library. Choose <code>jtidy</code> if you don't want to install a platform specific binary. Note that JTidy is not a 100% implementation of tidy, though it appears to be quite close (at about 95%).</span>
</li>
</ul>
</li>
<liid="cite_note-2">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-2">^</a></span><spanclass="reference-text">Path to the tidy binary . Recommended: <ahref="http://tidy.sourceforge.net"rel="nofollow"class="external text">tidy</a></span>
</li>
<liid="cite_note-engine_tidy-3">
<spanclass="mw-cite-backlink"><ahref="#cite_ref-engine_tidy_3-0">^</a></span><spanclass="reference-text">XOWA defaults to the following tidy arguments:</span>
<prestyle='overflow:auto;'>
<spanclass="reference-text">-utf8 --force-output y --quiet y --tidy-mark n --doctype '''' --wrap 0 --indent y --quote-nbsp y --literal-attributes y --wrap-attributes n --fix-url n --fix-backslash n --enclose-block-text y -o "~{target}" "~{source}"
</span>
</pre>
<dl>
<dt>
<spanclass="reference-text">-utf8</span>
</dt>
<dd>
<spanclass="reference-text">default is ascii</span>
<li><ahref="http://dumps.wikimedia.org/backup-index.html"title="Get wiki datababase dumps directly from Wikimedia">Wikimedia dumps</a></li>
<li><ahref="https://archive.org/search.php?query=xowa"title="Search archive.org for XOWA files">XOWA @ archive.org</a></li>
<li><ahref="http://en.wikipedia.org"title="Visit Wikipedia (and compare to XOWA!)">English Wikipedia</a></li>
</ul>
</div>
</div>
<divclass="portal"id='xowa-portal-donate'>
<h3>Donate</h3>
<divclass="body">
<ul>
<li><ahref="https://archive.org/donate/index.php"title="Support archive.org!">archive.org</a></li><!-- listed first due to recent fire damages: http://blog.archive.org/2013/11/06/scanning-center-fire-please-help-rebuild/ -->