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

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

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

Given an array of nodes, remove any member that is contained by another.

Parameters

nodes: Node[]

Nodes to filter.

Returns

Remaining nodes that aren't subtrees of each other.