Hexret

Web Security · Client-side

HTML sanitization

Also known as: HTML sanitizer, HTML sanitizing

Parses untrusted HTML and removes disallowed elements, attributes, and behavior while retaining permitted formatting. Use a maintained sanitizer when HTML is required. For ordinary text, use a text-only rendering operation instead.

Where you practice it

Related terms