For documentation, see docs/html/index.html in this distribution, or http://countergram.com/open-source/pytidylib/ Small example of use: from tidylib import tidy_document document, errors = tidy_document('''
fõo
''',
options={'numeric-entities':1})
print document
print errors