caxy / php-htmldiff

A library for comparing two HTML files/snippets and highlighting the differences using simple HTML. Includes support for comparing complex lists and tables
http://php-htmldiff.caxy.com
GNU General Public License v2.0
202 stars 51 forks source link

Issue with detecting additional/removed spaces in html text #128

Open Chudy20007 opened 3 months ago

Chudy20007 commented 3 months ago

Hello. I noticed that if some additional spaces were added into a text or removed from a text then there is no difference detected. Is it possible to configure HtmlDiff to handle this case? If it's not then maybe it's worth to implement/fix?

Example:

<p>Just a simple text&nbsp; &nbsp;</p>

Expected output should show that additional spaces were added.

Thanks for any feedback or tips!