I know of the Text_Diff PEAR package, but is there anything more robust? I'm looking to take diffs of strings with HTML tags in them, and I'd like to know the locations of all the differences including the tags.
Asked
Active
Viewed 944 times
0
-
1In what way is Text_Diff not robust enough for your needs? – Anon. Jan 19 '10 at 00:26
-
I'm currently using Text_Diff on HTML (and have been for 2 years now) to drive an HTML-based wiki application. It's not ideal, but it's sufficient for my purposes. – Frank Farmer Jan 19 '10 at 00:55
2 Answers
2
The PEAR Text_Diff
package is the most complete I know, however if that doesn't fit your needs you can try PHPDiff or the really simple simplediff from Paul Butler.
BTW, this has been discussed here before.
-3
What do you mean "for PHP?" ?
Diffs aren't language dependent. I use a diff plugin for my Text Editor (Vim).

Luca Matteis
- 29,161
- 19
- 114
- 169
-
2If you're building, say, a PHP wiki, you need a way to do diffs in PHP itself. – Frank Farmer Jan 19 '10 at 00:55
-