## escapeHtml() function [​](/content/docs/sdk/core.escapehtml#escapehtml-function "Direct link to escapeHtml(/index.html) function")

Returns the escaped HTML string of the input string.

**Signature:**

```typescript
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.

- [escapeHtml() function](/content/docs/sdk/core.escapehtml#escapehtml-function/index.html)
- [Parameters](/content/docs/sdk/core.escapehtml#parameters/index.html)
