Common · Knowledge

HTML sanitization

Process of examining an HTML document and producing a new HTML document that preserves only whatever tags are designated "safe" and desired

In data sanitization, HTML sanitization is the process of examining an HTML document and producing a new HTML document that preserves only whatever tags and attributes are designated "safe" and desired. HTML sanitization can be used to protect against attacks such as cross-site scripting (XSS) by sanitizing any HTML code submitted by a user.

From Wikipedia

In data sanitization, HTML sanitization is the process of examining an HTML document and producing a new HTML document that preserves only whatever tags and attributes are designated "safe" and desired. HTML sanitization can be used to protect against attacks such as cross-site scripting (XSS) by sanitizing any HTML code submitted by a user.

Text: Wikipédia, CC BY-SA 4.0. ·

Open

Tap to close

Confirmation