domNodeToHTMLString
export
function
domNodeToHTMLString
(
 Â
root
:
Node
|
null
,
 Â
reporter
?
:
DomNodeToHtmlReporter
,
 Â
depth
:
number
=
0
)
:
string
Convert a DOM node to its HTML representation.
#
Parametersroot
#
required
The root to stringify.
reporter
#
optional
An optional function which will receive every parsed node as 1st argument, the depth as 2d argument and the converted html as 3d argument.
depth
#
optional
depth
:
number
;
Default: 0