Skip to content

basalt / http/src / escapeHtml

Function: escapeHtml() ​

> escapeHtml(value): string

Defined in: http/src/html.ts:28

Escapes & < > " ' — safe for text nodes and quoted attribute values.

Parameters ​

value ​

unknown

Returns ​

string

Released under the MIT License.