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

x/html_parser/src/utils/mod.ts>getElements

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

Parameters

options: TestElementOpts

An object describing nodes to look for.

nodes: Node | Node[]

Nodes to search through.

recurse: boolean

Also consider child nodes.

optional
limit = [UNSUPPORTED]

Maximum number of nodes to return.

Returns

All nodes that match options.