@empathyco/x-components
Version:
Empathy X Components
27 lines (15 loc) • 559 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[](./index.md) > [@empathyco/x-components](./x-components.md) > [sanitize](./x-components.sanitize.md)
Sanitize characters from a given string.
**Signature:**
```typescript
sanitize: (str: string) => string
```
| Parameter | Type | Description |
| --- | --- | --- |
| str | string | The string to remove unwanted characters. |
**Returns:**
string
The string without the unwanted characters.