HTML sanitization
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.
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.
References
- ^ "strip_tags" . PHP.NET. Wikipedia revision 1357422320, retrieved 2026-11-20 · 1795129200.0
- ^ "HTML Purifier - Filter your HTML the standards-compliant way!" . htmlpurifier.org . Wikipedia revision 1357422320, retrieved 2026-11-20 · 1795129200.0
- ^ "OWASP Java HTML Sanitizer" . Wikipedia revision 1357422320, retrieved 2026-11-20 · 1795129200.0
- ^ "HTML Agility Pack - Home" . Archived from the original on 2013-01-01 . Retrieved 2013-01-04 . Wikipedia revision 1357422320, retrieved 2026-11-20 · 1357254000.0
- ^ "Whitelist santize with HtmlAgilityPack" . 14 June 2011. Wikipedia revision 1357422320, retrieved 2026-11-20 · 1795129200.0
- ^ Ganss, Michael (5 December 2023). "HtmlSanitizer" . Retrieved 7 December 2023 . Wikipedia revision 1357422320, retrieved 2026-11-20 · 1795129200.0
- ^ "JS HTML Sanitizer" . GitHub . 14 October 2021. Wikipedia revision 1357422320, retrieved 2026-11-20 · 1795129200.0
- ^ a b "HtmlRuleSanitizer" . GitHub . 13 August 2021. Wikipedia revision 1357422320, retrieved 2026-11-20 · 1795129200.0
- HtmlRuleSanitizer . GitHub . 13 August 2021. · 1780354800.0
- strip_tags . PHP.NET . · 1780354800.0
- HTML Purifier - Filter your HTML the standards-compliant way! . htmlpurifier.org . · 1780354800.0
- OWASP Java HTML Sanitizer . · 1780354800.0
- HTML Agility Pack - Home . · 1780354800.0
- Whitelist santize with HtmlAgilityPack . 14 June 2011. · 1780354800.0
- Ganss, Michael. HtmlSanitizer . 5 December 2023. retrieved 7 December 2023 · 1780354800.0
- JS HTML Sanitizer . GitHub . 14 October 2021. · 1780354800.0
Cite this
"HTML sanitization". 1780405662. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1357422320 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy