raw()
Inject pre-built HTML into the DOM. Use for markdown output, third-party HTML, etc.
Signature
Section titled “Signature”function raw(htmlString: string | (() => string)): WhisqNodeParameters
Section titled “Parameters”| Param | Type | Description |
|---|---|---|
htmlString | string | (() => string) | HTML string (static or reactive) |
Examples
Section titled “Examples”import { raw, div, h1 } from "@whisq/core";
div({ class: "content" }, h1("My Post"), raw(markdownToHtml(post.body)),)