# sanitize\_html

Source: https://zotonic.com/docs/2254/sanitize_html

URI: https://zotonic.com/id/2254

Language: en



Sanitize a HTML code. Removes elements and attributes that might be dangerous, like `<script>` elements.

This filter parses the complete HTML string and ensures that the output is safe and valid HTML.

Do not use (without caching) on busy pages, as the sanitization process is cpu and memory intensive.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2254?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2254?language=en>)
