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

x/html_parser/src/mod.ts>DomUtils.getOuterHTML

Port of fb55/htmlparser2 for Deno
Latest
function DomUtils.getOuterHTML
Deprecated
Deprecated

Use the dom-serializer module directly.

import { DomUtils } from "https://deno.land/x/html_parser@v0.1.3/src/mod.ts";
const { getOuterHTML } = DomUtils;

Parameters

node: Node | Node[]

Node to get the outer HTML of.

optional
options: DomSerializerOptions

Options for serialization.

Returns

string

node's outer HTML.