HTML Comparison
HTML Compare identifies and processes the differences between any two HTML or XHTML documents and produces a redlined HTML output document. Its primary use is as a toolkit for integration into other systems or applications via REST API, but it can also be run
standalone from the command line.
What HTML Compare does
HTML Compare compares two well-formed HTML files — referred to as 'A' and 'B' — and generates a single HTML file describing the differences. The comparison output is a standard XHTML redline document that any browser can render, clearly visualising additions, deletions, and changes.
The REST API supports asynchronous comparison: each comparison is tracked as a Job that can be polled for status or cancelled while running.
Main features
|
Feature |
Description |
|---|---|
|
REST API integration |
Invoke comparisons from any language or system via multipart/form-data POST. |
|
Word-by-word comparison |
Default mode; granular results rather than block-level changes. |
|
Character-by-character comparison |
Identifies changes at character level for spelling and grammatical errors. |
|
HTML table comparison |
W3C-conformant table handling including cell, row/column, and spanning changes. |
|
Ignoring document structure |
Compares content while ignoring structural formatting elements. |
|
MathML comparison |
Produces valid, renderable comparison output for embedded MathML. |
|
Inline SVG comparison |
XML-based comparison of inline SVG. |
|
CSS and JavaScript handling |
Applies second document CSS and JavaScript to the final output. |
|
XML configuration file |
All features are configurable via an XSD-validated XML configuration file. |