Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 9x 9x 9x 9x 9x 9x 9x 9x 9x 9x 9x 9x | /**
* Provides simple diffing logic for HTML content.
*/
export class HtmlDiff {
/**
* Compares two HTML strings and returns the next HTML if they differ.
* @param {string} currentHtml - The current HTML content.
* @param {string} nextHtml - The next HTML content.
* @returns {string|null} The next HTML if it differs from current, otherwise null.
*/
diff(currentHtml, nextHtml) {
return currentHtml === nextHtml ? null : nextHtml;
}
}
|