# strip_dangerous_unicode

> **Function** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/unicode_security/strip_dangerous_unicode)

Remove known dangerous/invisible Unicode characters from text.

## Signature

```python
strip_dangerous_unicode(
    text: str,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `text` | `str` | Yes | Input text to sanitize. |

## Returns

`str`

Sanitized text with dangerous characters removed.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/a9e6e4f7ad7fe161dd9affc3d74bb19784aca70b/libs/cli/deepagents_cli/unicode_security.py#L164)