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

x/html_parser/src/utils/helpers.ts

Port of fb55/htmlparser2 for Deno
Latest
import * as htmlParser from "https://deno.land/x/html_parser@v0.1.3/src/utils/helpers.ts";

Functions

Compare the position of one node against another node in any other document. The return value is a bitmask with the following values:

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

Sort an array of nodes based on their relative position in the document and remove any duplicate nodes. If the array contains nodes that do not belong to the same document, sort order is unspecified.