core.escapehtml | Medplum
escapeHtml() function
Returns the escaped HTML string of the input string.
Signature:
export declare function escapeHtml(unsafe: string): string;
Parameters [](/content/docs/sdk/core.escapehtml#parameters "Direct link to Parameters"/index.html)
| Parameter | Type | Description |
|---|---|---|
| unsafe | string | The unsafe HTML string to escape. |
Returns:
string
The escaped HTML string.