node-lib

@wtasnorg/node-lib


@wtasnorg/node-lib / escapeHtml

Function: escapeHtml()

escapeHtml(str): string

Defined in: src/anchor.ts:13

Escape special HTML characters in a string to prevent XSS.

Parameters

str

string

Raw string.

Returns

string

HTML-safe string.