Actions17
Text Diff
AI-generatedSummary
Compute a word-level difference between two text inputs, producing a list of changes or an HTML-formatted diff.
Inputs
- Old Value (required) — The original text string to compare from.
- New Value (required) — The updated text string to compare against.
- Output Format — Select the format of the output difference: either a 'Simple List' of change objects or an 'HTML' string highlighting additions and deletions.
Output shape
a single JSON object with either a 'result' property (array of change objects with 'added', 'removed', and 'value' fields) or an 'html' property (string containing HTML markup for the diff)
The output contains the full diff result: if 'Simple List' is selected, 'result' is an array of changes that indicate which parts were added, removed, or unchanged; if 'HTML' format is selected, 'html' provides a color-coded and tagged HTML string with insertions (green), deletions (red, strikethrough), and unchanged text (grey). No pagination or error envelope applies.