Diff tool for html documents. disregarding markup
CoffeeScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
README.md

README.md

html-diff-js

Diff tool for html documents, disregarding markup

Dependencies

jQuery: converting text into plain text including HTML Entities

Diff Match Path: http://code.google.com/p/google-diff-match-patch/

Underscore.js: Utility functions

Usage

to produce a html diff marking insertions and deletions using the <ins> and <del> tags:

HtmlDiff.formatTextDiff(originalText, finalText)

see the code of this method to get the individual steps if you want the diff in array form.

License

This library is released under the MIT license