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

x/html_parser/src/Node.ts>cloneNode

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

Clone a node, and optionally its children.

Parameters

node: T

Clone child nodes as well.

optional
recursive = [UNSUPPORTED]

Returns

A clone of the node.