jwhitlock / pytidylib

Python ctypes-based wrapper of the HTML Tidy library for fixing invalid (X)HTML

Home Page:http://countergram.com/open-source/pytidylib/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Python ctypes-based wrapper of the HTML Tidy library for fixing invalid (X)HTML

http://countergram.com/open-source/pytidylib/

License:MIT License


Languages

Language:Python 100.0%