Skip to main content
method cheerio.Node.prototype.cloneNode
import { cheerio } from "https://deno.land/x/deno_temme@v1.0.0/deps.ts";
const { Node } = cheerio;

Clone this node, and optionally its children.

Parameters

this: T

Clone child nodes as well.

optional
recursive: boolean

Returns

A clone of the node.