The plain text extracted from sourceHtml by stripping all tags.
Source HTML with highlight tags wrapped around matched and unmatched text.
Target plain text with highlight tags wrapped around matched and added text.
Structured segments describing each highlighted region in the source.
Dice coefficient indicating similarity between 0 (completely different)
and 1 (identical). Computed as 2 * matchedChars / (sourceChars + targetChars).
The targetText argument, included for convenience.
Result of comparing HTML source against plain text.
Each field provides a different view of the same comparison:
highlightedSourceandhighlightedTargetproduce HTML strings with<mark>tags (or custom tags) wrapping matched, unmatched, and added regions, suitable for rendering in a browser.extractedTextandtargetTextare the plain-text inputs that were actually diffed after stripping HTML tags from the source.segmentsis a machine-readable list of matched/unmatched regions in the source HTML, useful for building custom visualisations or analytics.similarityis a 0–1 ratio indicating how similar the two inputs are.