MCPcopy Index your code
hub / github.com/fb55/htmlparser2 / parseDocument

Function parseDocument

src/index.ts:32–36  ·  view source on GitHub ↗
(data: string, options?: Options)

Source from the content-addressed store, hash-verified

30 * @param options Optional options for the parser and DOM handler.
31 */
32export function parseDocument(data: string, options?: Options): Document {
33 const handler = new DomHandler(undefined, options);
34 new Parser(handler, options).end(data);
35 return handler.root;
36}
37
38/**
39 * Creates a parser instance, with an attached DOM handler.

Callers 2

parseFeedFunction · 0.85
index.spec.tsFile · 0.85

Calls 1

endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…