escaping

Rewriting special characters in a value so an interpreter reads them as plain text, for example turning < into &lt; in HTML.

In more detail

Escaping is the last-resort injection defence, after parameters and allowlists. Use only the escaping function that ships with the interpreter, because rules differ by context and hand-written versions are subtly wrong.

Related terms

Taught in

References

Certification courses