Skip to content

Glossary: AI Security and Guardrails

Sanitizer

Also written: nh3

A library that removes every HTML tag and attribute that is not on its allowed list. For example, nh3 can turn a model's Markdown reply into HTML that is safe to show in a browser.

Where the book teaches it

Related terms

MarkdownContent Security PolicyAllow-list