abukane / daisydiff

Automatically exported from code.google.com/p/daisydiff
0 stars 0 forks source link

I want to compare only two html Strings rather than entire file and get the output as an html String #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I want to compare only two html Strings rather than entire file and get the 
output as an html String.

This is required because we need to compare different html strings in a Loop.

HTMLs are retrieved from the database.

My need is: 

String 1 = html1
String 2 = html2

After comparing String 1 and 2, I should get third String with the differences 
highlighted

Original issue reported on code.google.com by dominic....@gmail.com on 19 Jul 2010 at 6:19

GoogleCodeExporter commented 8 years ago
I am assuming that you are using DaisyDiff programmatically. If that is the 
case you can look at the unit tests which show how you can compare Strings in 
both modes (HTML and tag)

See for example.

http://code.google.com/p/daisydiff/source/browse/trunk/daisydiff/src/test/org/ou
terj/daisy/diff/html/HtmlTestFixture.java

If you mean something else, please re-open this issue.

Original comment by kkape...@gmail.com on 20 Jul 2010 at 7:36

GoogleCodeExporter commented 8 years ago
Thanks, this should work for me.

Original comment by dominic....@gmail.com on 20 Jul 2010 at 5:39