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

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

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

Prepend an element before another.

Parameters

elem: Node

The element to prepend before.

prev: Node

The element be added.