Methods
escape(value) → {string}
Escapes special HTML characters in a string.
Parameters:
| Name | Type | Description |
|---|---|---|
value |
any | The value to escape. |
- Source:
Returns:
The escaped string.
- Type
- string
Provides utility for escaping HTML characters to prevent XSS.
Escapes special HTML characters in a string.
| Name | Type | Description |
|---|---|---|
value |
any | The value to escape. |
The escaped string.