Hi All,

Diffing two HTML strings is a annoying task, what do people think
about a function that would

take two html strings and return the differences as another string
with markup e.g.

<cfscript>
string1="The quick brown fox jumped over the lazy dog";
string2="The popularity of quick openbd jumped"; //tempting to make
reference to dog but must not
result=cfhtmldiff(string1,string2);

output of result would be

The <ins>popularity of</ins> quick <del>brown fox</del> <ins>openbd</
ins> jumped <del>over the lazy dog</del>

There are some implementations out there in alternative languages
http://prettydiff.com/
http://code.google.com/p/daisydiff/
http://ejohn.org/projects/javascript-diff-algorithm/

But nothing that I could find in CF would seem a good utility function
to me

Thanks

Alex

-- 
official tag/function reference: http://openbd.org/manual/
 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to