Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Diffs arbitrary HTML inline
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore Added missing LICENSE file
LICENSE Added missing LICENSE file
README
htmldiff.py
setup.py Initial version

README

htmldiff
````````

A library that uses difflib, genshi and htmldiff to diff
arbitrary fragments of HTML inline.

    >>> from htmldiff import render_html_diff
    >>> render_html_diff('Foo <b>bar</b> baz', 'Foo <i>bar</i> baz')
    u'<div class="diff">Foo <i class="tagdiff_replaced">bar</i> baz</div>'
    >>> render_html_diff('Foo bar baz', 'Foo baz')
    u'<div class="diff">Foo <del>bar</del> baz</div>'
    >>> render_html_diff('Foo baz', 'Foo blah baz')
    u'<div class="diff">Foo <ins>blah</ins> baz</div>'
Something went wrong with that request. Please try again.