html diff

How to Diff Two Strings in PHP and Show the Difference in HTML

This php class will take two strings and return a html diff of them with the <ins> and <del> html tags representing what was deleted and inserted.

Example usage

Output

I We went to the store