A diff library that uses html tags to show differences
Switch branches/tags
Nothing to show
Clone or download
myobie Merge pull request #2 from huacnlee/master.
I fixed bug for Chinese content.
Latest commit c3b9112 May 4, 2011


class Stuff

  class << self
    include HTMLDiff
  # or extend HTMLDiff ?


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.