Skip to main content

DomNodeToHtmlReporter

export
interface DomNodeToHtmlReporter {
  (
    node: null | Node,
    depth: number,
    html: string
  ) : void;
}

Parameters#

node#

required
node: null | Node;

The node being parsed.

depth#

required
depth: number;

How many parents this node have.

html#

required
html: string;

The HTML representation of this node and its children.