Function: htmlToDOM()
htmlToDOM(
html,options?): (Element|Comment|ProcessingInstruction|Text)[]
Defined in: node_modules/html-dom-parser/lib/server/html-to-dom.d.ts:21
Parses HTML string to DOM nodes in Node.js.
This is the same method as require('htmlparser2').parseDOM
https://github.com/fb55/htmlparser2/blob/v6.0.0/src/index.ts#L29-L41
Parameters
html
string
HTML markup.
options?
DomHandlerOptions
Parser options (https://github.com/fb55/domhandler/tree/v5.0.3#readme).
Returns
(Element | Comment | ProcessingInstruction | Text)[]
- DOM nodes.