I'm looking for the best way to compare n chunks of HTML and show the rendered changes over time, essentially recalling versions of a page in a CMS and listing the changes for users.
While 1061468 and 31722 are useful, they don't really address this need.
I'm not after a solution that has a pretty display, visually indicating the changes. I just want want data - in an ideal world I'd pass an array or object containing n blocks of html in chronological order and get back an object of either version-to-version or cumulative changes
I realise that this is one of those 'The more you look at it, the more difficult it appears' questions. Clearly any change to 'content' would have to be picked up but relevant mark-up is far more difficult to identify - you can have huge change that makes no difference to rendered content and tiny change that alters the page dramatically.
To be honest, I'm not even sure that what I'm looking for is practical at all. But before I give up on this as a path to investigate, I thought I'd ask the crowd.