# desanitize

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/utilities/opaqueprompts/desanitize)

Restore the original sensitive data from the sanitized text.

## Signature

```python
desanitize(
    sanitized_text: str,
    secure_context: bytes,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `sanitized_text` | `str` | Yes | Sanitized text. |
| `secure_context` | `bytes` | Yes | Secure context returned by the `sanitize` function. |

## Returns

`str`

De-sanitized text.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/d5ea8358933260ad48dd31f7f8076555c7b4885a/libs/community/langchain_community/utilities/opaqueprompts.py#L81)