Browse documentation

htmlToDom

Parses HTML into a server-side DOM value.

Table of contents

Category

Value

Import

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

Public signature

ts
(html: string): Element | Text | DocumentFragment

Parameters

ts
html: string

Result

ts
Element | Text | DocumentFragment