---
title: "Sanitize String"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/lib/validate/sanitizestring
markdown: https://docs.nodetool.ai/nodes/lib/validate/sanitizestring.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/lib/validate/sanitizestring.md
---

# Sanitize String

**Type:** `lib.validate.Sanitize`

**Namespace:** `lib.validate`

## Description

HTML-escape, trim, and lowercase/normalise a string. Also emits the normalised email when applicable.
    sanitize, escape, html, xss, clean, trim

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| value | `str` |  | `` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| escaped | `str` |  |
| trimmed | `str` |  |
| normalized_email | `str` |  |

## Related Nodes

Browse other nodes in the [lib.validate](./) namespace.
