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