File: README

package info (click to toggle)
python-tidylib 0.3.2~dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 156 kB
  • sloc: python: 411; sh: 14; makefile: 12
file content (10 lines) | stat: -rw-r--r-- 304 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
This is a Python wrapper around the HTML Tidy library. Quick start example:

from tidylib import Tidy
tidy = Tidy()
document, errors = tidy.tidy_document('<p>f&otilde;o <img src="bar.jpg">',
    options={'alt-text': 'baz'})
print(document)
print(errors)

For full documentation, see the docs/ directory.