php-htmldiff icon indicating copy to clipboard operation
php-htmldiff copied to clipboard

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

Results 31 php-htmldiff issues
Sort by recently updated
recently updated
newest added

This feature tries to provide a fix for #109. It adds a setting `spaceMatching` which can be set to true so spaces aren't ignored at all. The HTML provided needs...

size/M

Looks like added spaces are missing in diff output. ```php $htmlOld = 'He said:"OK!"'; $htmlNew = 'He said: "OK!"'; $htmlDiff = new \Caxy\HtmlDiff\HtmlDiff($htmlOld, $htmlNew); echo $htmlDiff->build(); ``` prints `He said:"OK!"`...

Bug

Adding or removing a lone image inside a paragraph tag when the paragraph above also has a change doesn't show as an addition or a deletion for the image. Tested...

Bug

Hello and thank you for this awesome library! I am reporting an issue tested in https://php-htmldiff.caxy.com/. The diff doesn't detect the left image deletion in the following 2-cells-table: OLD ```html...

Bug

If you compare `This is a text` with the same text in bold `This is a text`, the result is `This is a textThis is a text` If you compare...

Seems like the Purifier config is not being passed down to "nested diff instances"; When a document is being processed new HtmlDiff instances and instances of other classes such as...

Bug

I've got the following two blocks of HTML being marked as changed, even though I've diffed them with WinMerge and it tells me they're 100% identical. Block 1: ```html ReferencesPermalink...

Bug

Hi, I was testing your tool and its really usefull to me. The only thing that bothers me is the fact that in the diff all attributes like width etc....

Feature

I have an individual problem with the HTMLDiff and it removing styling of lists. Say I have the following text to compare: ``` No public officer or employee having the...

It does not handle comments properly. Ideally, it will be great if there is an option to skip certain tags. Comments appear like this: `

Enhancement