/uTidylib

Tracking Debian's version of uTidyLib

Primary LanguagePythonMIT LicenseMIT

This is uTidylib, the Python wrapper for the HTML cleaning library named TidyLib: http://tidy.sf.net . Python 2.3 or later is required to use uTidylib. Repeat, Python 2.3 or later is required to use uTidylib.

Once installed, there are two ways to get help. The simplest is:

$ python

import tidy help(tidy) . . .

Then, of course, there's the epydoc-generated API documentation, which is available at site-packages/tidy/apidoc/index.html .


10 Second Tutorial


import tidy options = dict(output_xhtml=1, add_xml_decl=1, indent=1, tidy_mark=0) print tidy.parseString('Hello Tidy!', **options)

<title></title> Hello Tidy! Good luck!