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

x/html_parser/src/DomSerializer.ts>default

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

Renders a DOM node or an array of DOM nodes to a string.

Can be thought of as the equivalent of the outerHTML of the passed node(s).

Parameters

node: Node | ArrayLike<Node>

Node to be rendered.

optional
options: DomSerializerOptions = [UNSUPPORTED]

Changes serialization behavior

Returns

string