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

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

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

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.