Class: HtmlDiff

HtmlDiff()

Provides simple diffing logic for HTML content.

Constructor

new HtmlDiff()

Source:

Methods

diff(currentHtml, nextHtml) → {string|null}

Compares two HTML strings and returns the next HTML if they differ.

Parameters:
Name Type Description
currentHtml string

The current HTML content.

nextHtml string

The next HTML content.

Source:
Returns:

The next HTML if it differs from current, otherwise null.

Type
string | null