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

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

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

Use the dom-serializer module directly.

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

Parameters

node: Node

Node to get the inner HTML of.

optional
options: DomSerializerOptions

Options for serialization.

Returns

string

node's inner HTML.