Skip to content
English

escapeHtml

escapeHtml(s): string

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

Escape the HTML-significant characters (& < > " ' and the backtick). Safe for HTML element content and quoted attribute values; it does NOT cover JS-string, CSS, or URL contexts, which need their own encoding.

string

string