sanitization

Cleaning untrusted input by removing or neutralising anything dangerous, such as script tags and event attributes in HTML.

In more detail

It differs from escaping, which keeps all the text but makes it harmless for its context. Use a well-tested library or the platform's built-in sanitizer rather than writing your own regular expressions, which attackers routinely bypass.

Related terms

Taught in

References