Documentation / @zerotal/core / helpers / escapeHtml
Function: escapeHtml()
escapeHtml(
value):string
Defined in: helpers/html.ts:9
HTML escaping for server-rendered output — the framework's one escaper.
Delegates to Bun.escapeHTML, which is SIMD-optimized and escapes the full
set (& < > " ', emitting ' for the apostrophe). Safe for
both text content and double-quoted attribute values; both JSX runtimes and
the docs app render through it, so it runs on every SSR text child.
Parameters
value
string
Returns
string