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

The diff algorithm does not always keep HTML entity references intact, which can be problematic when later loading the resulting diff as HTML (e.g. when diffing a list entry). This...

Bug

When comparing identical tags (tag and content), of which one has an attribute that the other doesn't, the produced output presents two opening tags, the identical content, and only one...

Bug

We sometimes get this "Unexpected end tag" problem, and this is how to reproduce it. The following PHP file is very sensitive to spaces, so make sure each and every...

`$html1='HSN / SACTaxable Value (Rs.)Central TaxUT TaxTotal Tax (Rs.)RateAmount (Rs.)RateAmount (Rs.)1245200.00RowcgstRt-9.00%RowcgstAmt-18.00RowugstRt-5.00%RowugstAmt-10.00TotRowTax-28.00';` `$html2='HSN / SACTaxable Value (Rs.)Central TaxTotal Tax (Rs.)RateAmount (Rs.)1245200.00RowcgstRt-9.00%RowcgstAmt-18.00TotRowTax-18.00';` `echo "Using Caxy\HtmlDiff\HtmlDiff";` `$htmlDiff = new Caxy\HtmlDiff\HtmlDiff($html1,$html2);` `echo $content =...

https://github.com/caxy/php-htmldiff/issues/123

hello and thanks for this great tool. not sure if i am misunderstanding how to configure, but say I have the following: ``` Sat 20 Apr 2024 Depart Routeburn Shelter...

I'm still getting this but for `TableDiff`: > Deprecated function: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead in Caxy\HtmlDiff\Table\TableDiff->createDocumentWithHtml() (line 630 of /var/www/html/vendor/caxy/php-htmldiff/lib/Caxy/HtmlDiff/Table/TableDiff.php)....

Really nice, thank you for your work 👍 I love this library and use it a lot!

Fix deprecated call to mb_convert_encoding().

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...