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

x/html_parser/src/mod.ts>parseDocument

Port of fb55/htmlparser2 for Deno
Latest
function parseDocument
import { parseDocument } from "https://deno.land/x/html_parser@v0.1.3/src/mod.ts";

Parses the data, returns the resulting document.

Parameters

data: string

The data that should be parsed.

optional
options: Options

Optional options for the parser and DOM builder.