Php Htmldiff Versions Save

A library for comparing two HTML files/snippets and highlighting the differences using simple HTML. Includes support for comparing complex lists and tables

v0.1.15

6 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/caxy/php-htmldiff/compare/v0.1.14...v0.1.15

v0.1.14

2 years ago

v0.1.14 (2022-01-19)

Full Changelog

Changes:

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.

  • Deprecated all setSpecialCaseTags() config calls. There is no replacement, but the current expectation is that nobody ever used these calls anyway.
  • Fixed Issue 106 / 69 by removing special-case-tags from the codebase
  • Reduced the CRAP score of insertTag() by allot

v0.1.13

2 years ago

v0.1.13 (2021-09-27)

Full Changelog

Changes:

  • Add .gitattributes file to exclude demo and tests from the exported zip package to reduce package size when installed via composer (#86 - @danepowell )

v0.1.12

3 years ago

v0.1.12 (2021-04-05)

Full Changelog

Changes:

  • Word parser is rebuild to improve performance by 98% (according to xhprof profiler) and reducing code complexity.
  • Whitespace checking improvements in match finding algorithm to improve performance by allot, up to 50% in some of my testing

v0.1.11

3 years ago

v0.1.11 (2021-02-02)

Full Changelog

Important

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

Changes:

  • Fixed a bug where self-closing tags got crippled in HtmlDiff
  • Ported ListDiff from SimpleXML to DOMDocument
  • Cleanup of old list diff algorithm
  • Possibility to disable html-purifier using a config flag
  • Removed dependency php-simple-html-dom-parser

v0.1.10

3 years ago

v0.1.10 (2021-01-05)

Full Changelog

Important:

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.

Changes:

  • Fixed the keywords that made this version incompatible with PHP8
  • Upgraded PHPUnit dependencies with a PHP8 compatible version

v0.1.9

5 years ago

v0.1.9 (2019-02-20)

Full Changelog

Merged pull requests:

v0.1.8

5 years ago

v0.1.8 (2019-01-15)

Full Changelog

Implemented enhancements:

  • Resolve PHP 7.3 compatibility issue to fix #79 #80 (irkallacz)

Closed issues:

  • Does not work on PHP 7.3 #79

v0.1.7

6 years ago

Bugfixes:

  • Fix issues with unicode characters (@iluuu1994 #71, #72)

v0.1.6

6 years ago