Skip to content

TypeScript API / @laikacms/server/oauth2 / escapeHtml

Function: escapeHtml() ​

ts
function escapeHtml(text): string;

Escape HTML special characters (&, <, >, ", ') so a string is safe to interpolate into HTML text content.

Parameters ​

ParameterType
textstring

Returns ​

string

Released under the MIT License.