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
For long html strings with few changes, it would be nice to have an option to show only a compact overview of changed parts. Similar to unix "grep --context=3" or...
Is there a way to have the count of the added/removed chars? I need to show something like: 300 chars added, 600 chars removed
When I diff a new text with ``, `body`or `head` tag and the old text doesn't include these the `HtmlDiff`will add a `class="diffmod"` to the tag, is there anyway to...
One of the items split from performance issues noted in #57
Is there any reference for the generated HTML tags (``, ``) and CSS classes (`.diffmod`, `.diffins`, etc)?
$a = `"abcd";` $b = `'abcd';` $diffConfig = new HtmlDiffConfig(); $diffConfig->setEncoding('UTF-8'); $diff = HtmlDiff::create($a, $b, $diffConfig); $diffResult = $diff->build(); dump($diffResult); the result is `abcd` But it should be same. :)...
Is it possible to retain the html tag, body tag, css and js files? like get the diff only in the body and the rest will be retain? Thanks.
Hi! I have a html that contains iframes, for example a youtube-embed-code. HtmlDiff filters the iframes out when comparing (the iframes are missing in the result). Is there a reason...
When using newlines within htmltags the regular expression used doesn't account for newlines, this pull request aims to fix this issue.
For Chinese / Janpanese / Korean, there is no space between words. So it's more friendly to inlinely display differences character by character. For example, I just change the 50...