/usr/share/doc/python-tidylib/README is in python-tidylib 0.2.4~dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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('''<p>fõo <img src="bar.jpg">''',
options={'numeric-entities':1})
print document
print errors
NOTE: HTML Tidy itself has currently not been updated for a long time, and may
not be, and it may have trouble with newer HTML. This is just a thin Python
wrapper around HTML Tidy, which is a separate project.
|