A library for comparing two HTML files/snippets and highlighting the differences using simple HTML. Includes support for comparing complex lists and tables
Full Changelog: https://github.com/caxy/php-htmldiff/compare/v0.1.14...v0.1.15
This release mainly removed everything that is related to the concept of special-case-tags. This was adopted from the original library by rashid2538 that this fork is based on.
The feature tried to wrap the special tags in an extra <ins / del class='mod'>
tag.
However, this never really worked properly (the closing tag was not always added to the diff output) and usually ended up crippling the HTML.
Given the feature never really worked, and there is no clear use-case for it, I decided to remove it and fix issue 106 and issue 69 in the process where it was sometimes impossible to diff html that contained these special tags or unexpected extra tags got added to the output.
In case you really needed this feature, please open an issue explaining your use-case, in that case this decision can be revisited.
.gitattributes
file to exclude demo and tests from the exported zip package to reduce package size when installed via composer (#86 - @danepowell )The changes to the list diffing are substantial, and we have tested as much as possible, to make sure the output stays the same between this version and the previous version.
If there are issues cropping up with list diffing after updating to this version feel free to open an issue
In order to be compatible with PHP8 we had to upgrade some vendor packages.
Since these vendor packages have dropped support for older versions of PHP we had todo the same, therefore this version is not compatible anymore with PHP versions prior to 7.3.
In case you are not able to upgrade your PHP version, please pin version v0.1.9 of php-htmldiff in your composer config.
Bugfixes: