[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/core](../../README) / [helpers](../README) / escapeHtml

# Function: escapeHtml()

> **escapeHtml**(`value`): `string`

Defined in: [helpers/html.ts:9](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/helpers/html.ts#L9)

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 `&#x27;` 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`
