core.escapehtml
Home > @medplum/core > escapeHtml
escapeHtml() function
Returns the escaped HTML string of the input string.
Signature:
export declare function escapeHtml(unsafe: string): string;
Parameters
Parameter | Type | Description |
---|---|---|
unsafe | string | The unsafe HTML string to escape. |
Returns:
string
The escaped HTML string.