Browse documentation

domToHtml

Serializes a server-side DOM value as HTML.

Table of contents

Category

Value

Import

js
import { domToHtml } from "valyrian.js/node";

Public signature

ts
(dom: Element | Text | DocumentFragment, rawText?: boolean): string

Parameters

ts
dom: Element | Text | DocumentFragment, rawText?: boolean

Result

ts
string