# Sane

The `Sane` class validates that files don't contain potentially harmful contents. The class comes with handlers for `svg`, `svgz` and `xml` files for now, but can be extended and customized.

****

- Full class name: `Kirby\Sane\Sane`
- Alias: `Sane`
- Source: <https://github.com/getkirby/kirby/tree/5.5.3/src/Sane/Sane.php#L23>

****

### Sane

- [Sane::handler()](https://getkirby.com/docs/reference/objects/sane/sane/handler.md)
- [Sane::sanitize()](https://getkirby.com/docs/reference/objects/sane/sane/sanitize.md)
- [Sane::sanitizeFile()](https://getkirby.com/docs/reference/objects/sane/sane/sanitize-file.md)
- [Sane::sanitizeProseMirrorFields()](https://getkirby.com/docs/reference/objects/sane/sane/sanitize-prose-mirror-fields.md)
- [Sane::validate()](https://getkirby.com/docs/reference/objects/sane/sane/validate.md)
- [Sane::validateFile()](https://getkirby.com/docs/reference/objects/sane/sane/validate-file.md)