Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mitsuhiko/htmldiff
- Owner: mitsuhiko
- License: other
- Created: 2011-10-06T16:29:36.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2018-03-12T16:09:17.000Z (almost 7 years ago)
- Last Synced: 2024-10-13T01:34:27.761Z (3 months ago)
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 28
- Watchers: 2
- Forks: 14
- Open Issues: 4
-
Metadata Files:
- Readme: README
- License: LICENSE
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'barbaz
>>> render_html_diff('Foo baz', 'Foo blah baz')
u'Foo blah baz'