Browse documentation

trust

Marks an HTML string for direct rendering.

Table of contents

Category

Value

Import

js
import { trust } from "valyrian.js";

Public signature

ts
(htmlString: string): (string | void | VnodeWithDom | null)[]

Parameters

ts
htmlString: string

Result

ts
(string | void | VnodeWithDom | null)[]

Observable effects

Parses the supplied string through innerHTML without sanitizing it.