HTML sanitization
process of examining an HTML document and producing a new HTML document that preserves only whatever tags are designated "safe" and desired
≈ 1 min read
Names in other languages
- eosanitarigo de HTML
- EnglishHTML sanitization
- PortuguêsSanitização HTML
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
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 derived from https://en.wikipedia.org/w/index.php?oldid=1357422320 under CC BY-SA 4.0; modifications have been made.