Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A diff library that uses html tags to show differences

tree: c3b9112b34

Merge pull request #2 from huacnlee/master.

I fixed bug for Chinese content.
latest commit c3b9112b34
Nathan authored
README
class Stuff

  class << self
    include HTMLDiff
  end
  
  # or extend HTMLDiff ?

end

Stuff.diff('a word is here', 'a nother word is there')

# => 'a<ins class=\"diffins\"> nother</ins> word is <del class=\"diffmod\">here</del><ins class=\"diffmod\">there</ins>'

Checkout the crappy specs for good examples. 
Something went wrong with that request. Please try again.