php-htmldiff
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
## Problem description The TableDiff first converts *some* of the string's characters into named entities using `htmlentities()`. The remaining characters are tried to be converted using `iconv()` (might behave differently...
Previously, `TableDiff::createDocumentWithHtml()` attempted to normalize text for `DOMDocument::loadHTML()` by passing it through `htmlentities()` and `iconv('UTF-8', 'ISO-8859-1//IGNORE', ...)`. This caused non-ASCII characters (e.g. emoji, Cyrillic, CJK) that are neither representable HTML...
We can accomplish what we need to with Github Actions, at the very least we can run the test suite via github actions