Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mitsuhiko/htmldiff

Diffs arbitrary HTML inline
https://github.com/mitsuhiko/htmldiff

Last synced: 2 months ago
JSON representation

Diffs arbitrary HTML inline

Awesome Lists containing this project

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 bar baz', 'Foo bar baz')
u'

Foo bar baz
'
>>> render_html_diff('Foo bar baz', 'Foo baz')
u'
Foo bar baz
'
>>> render_html_diff('Foo baz', 'Foo blah baz')
u'
Foo blah baz
'