Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/html_parser/src/mod.ts>parseDOM

Port of fb55/htmlparser2 for Deno
Latest
function parseDOM
Deprecated
Deprecated

Use parseDocument instead.

import { parseDOM } from "https://deno.land/x/html_parser@v0.1.3/src/mod.ts";

Parses data, returns an array of the root nodes.

Note that the root nodes still have a Document node as their parent. Use parseDocument to get the Document node instead.

Parameters

data: string

The data that should be parsed.

optional
options: Options

Optional options for the parser and DOM builder.