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. It makes it easy to visually compare strings.

Example usage


I We went to the store

Leave a Reply

Your email address will not be published. Required fields are marked *