0

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.

James Skidmore
  • 49,340
  • 32
  • 108
  • 136
  • 1
    In 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 Answers2

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.

Community
  • 1
  • 1
Alix Axel
  • 151,645
  • 95
  • 393
  • 500
-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