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 · retrieved 2026-11-19 · rev 1357422320
Cite this reference
MLA "strip_tags." 2026-11-19. http://us3.php.net/manual/en/function.strip-tags.php. Accessed 24 November 2026.
Chicago "strip_tags." 2026-11-19. http://us3.php.net/manual/en/function.strip-tags.php.
APA encyclopegia.org. (2026). strip_tags. Retrieved November 24, 2026, from http://us3.php.net/manual/en/function.strip-tags.php
- HTML Purifier - Filter your HTML the standards-compliant way! · retrieved 2026-11-19 · rev 1357422320
Cite this reference
MLA "HTML Purifier - Filter your HTML the standards-compliant way!." 2026-11-19. http://htmlpurifier.org/. Accessed 24 November 2026.
Chicago "HTML Purifier - Filter your HTML the standards-compliant way!." 2026-11-19. http://htmlpurifier.org/.
APA encyclopegia.org. (2026). HTML Purifier - Filter your HTML the standards-compliant way!. Retrieved November 24, 2026, from http://htmlpurifier.org/
- OWASP Java HTML Sanitizer · retrieved 2026-11-19 · rev 1357422320
Cite this reference
MLA "OWASP Java HTML Sanitizer." 2026-11-19. https://www.owasp.org/index.php/OWASP_Java_HTML_Sanitizer_Project. Accessed 24 November 2026.
Chicago "OWASP Java HTML Sanitizer." 2026-11-19. https://www.owasp.org/index.php/OWASP_Java_HTML_Sanitizer_Project.
APA encyclopegia.org. (2026). OWASP Java HTML Sanitizer. Retrieved November 24, 2026, from https://www.owasp.org/index.php/OWASP_Java_HTML_Sanitizer_Project
- HTML Agility Pack - Home · retrieved 2013-01-03 · rev 1357422320
Cite this reference
MLA "HTML Agility Pack - Home." 2013-01-03. https://web.archive.org/web/20130101170916/http://htmlagilitypack.codeplex.com/. Accessed 24 November 2026.
Chicago "HTML Agility Pack - Home." 2013-01-03. https://web.archive.org/web/20130101170916/http://htmlagilitypack.codeplex.com/.
APA encyclopegia.org. (2013). HTML Agility Pack - Home. Retrieved November 24, 2026, from https://web.archive.org/web/20130101170916/http://htmlagilitypack.codeplex.com/
- Whitelist santize with HtmlAgilityPack · retrieved 2026-11-19 · rev 1357422320
Cite this reference
MLA "Whitelist santize with HtmlAgilityPack." 2026-11-19. http://eksith.wordpress.com/2011/06/14/whitelist-santize-htmlagilitypack/. Accessed 24 November 2026.
Chicago "Whitelist santize with HtmlAgilityPack." 2026-11-19. http://eksith.wordpress.com/2011/06/14/whitelist-santize-htmlagilitypack/.
APA encyclopegia.org. (2026). Whitelist santize with HtmlAgilityPack. Retrieved November 24, 2026, from http://eksith.wordpress.com/2011/06/14/whitelist-santize-htmlagilitypack/
- HtmlSanitizer · retrieved 2026-11-19 · rev 1357422320
Cite this reference
MLA "HtmlSanitizer." Ganss, Michael (5 December 2023). 2026-11-19. https://github.com/mganss/HtmlSanitizer/. Accessed 24 November 2026.
Chicago "HtmlSanitizer." Ganss, Michael (5 December 2023). 2026-11-19. https://github.com/mganss/HtmlSanitizer/.
APA Ganss, Michael (5 December 2023). (2026). HtmlSanitizer. Retrieved November 24, 2026, from https://github.com/mganss/HtmlSanitizer/
- JS HTML Sanitizer · retrieved 2026-11-19 · rev 1357422320
Cite this reference
MLA "JS HTML Sanitizer." 2026-11-19. https://github.com/jitbit/HtmlSanitizer. Accessed 24 November 2026.
Chicago "JS HTML Sanitizer." 2026-11-19. https://github.com/jitbit/HtmlSanitizer.
APA encyclopegia.org. (2026). JS HTML Sanitizer. Retrieved November 24, 2026, from https://github.com/jitbit/HtmlSanitizer
- HtmlRuleSanitizer · retrieved 2026-11-19 · rev 1357422320
Cite this reference
MLA "HtmlRuleSanitizer." a b "HtmlRuleSanitizer". 2026-11-19. https://github.com/Vereyon/HtmlRuleSanitizer. Accessed 24 November 2026.
Chicago "HtmlRuleSanitizer." a b "HtmlRuleSanitizer". 2026-11-19. https://github.com/Vereyon/HtmlRuleSanitizer.
APA a b "HtmlRuleSanitizer". (2026). HtmlRuleSanitizer. Retrieved November 24, 2026, from https://github.com/Vereyon/HtmlRuleSanitizer
- HtmlRuleSanitizer . GitHub . 13 August 2021. · retrieved 2026-06-01 · rev 1357422320
Cite this reference
MLA "HtmlRuleSanitizer . GitHub . 13 August 2021." HtmlRuleSanitizer. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357422320. Accessed 24 November 2026.
Chicago "HtmlRuleSanitizer . GitHub . 13 August 2021." HtmlRuleSanitizer. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357422320.
APA HtmlRuleSanitizer. (2026). HtmlRuleSanitizer . GitHub . 13 August 2021. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357422320
- strip_tags . PHP.NET . · retrieved 2026-06-01 · rev 1357422320
Cite this reference
MLA "strip_tags . PHP.NET ." strip_tags. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357422320. Accessed 24 November 2026.
Chicago "strip_tags . PHP.NET ." strip_tags. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357422320.
APA strip_tags. (2026). strip_tags . PHP.NET . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357422320
- HTML Purifier - Filter your HTML the standards-compliant way! . htmlpurifier.org . · retrieved 2026-06-01 · rev 1357422320
Cite this reference
MLA "HTML Purifier - Filter your HTML the standards-compliant way! . htmlpurifier.org ." HTML Purifier - Filter your HTML the standards-compliant way!. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357422320. Accessed 24 November 2026.
Chicago "HTML Purifier - Filter your HTML the standards-compliant way! . htmlpurifier.org ." HTML Purifier - Filter your HTML the standards-compliant way!. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357422320.
APA HTML Purifier - Filter your HTML the standards-compliant way!. (2026). HTML Purifier - Filter your HTML the standards-compliant way! . htmlpurifier.org . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357422320
- OWASP Java HTML Sanitizer . · retrieved 2026-06-01 · rev 1357422320
Cite this reference
MLA "OWASP Java HTML Sanitizer ." 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357422320. Accessed 24 November 2026.
Chicago "OWASP Java HTML Sanitizer ." 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357422320.
APA encyclopegia.org. (2026). OWASP Java HTML Sanitizer . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357422320
- HTML Agility Pack - Home . · retrieved 2026-06-01 · rev 1357422320
Cite this reference
MLA "HTML Agility Pack - Home ." 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357422320. Accessed 24 November 2026.
Chicago "HTML Agility Pack - Home ." 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357422320.
APA encyclopegia.org. (2026). HTML Agility Pack - Home . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357422320
- Whitelist santize with HtmlAgilityPack . 14 June 2011. · retrieved 2026-06-01 · rev 1357422320
Cite this reference
MLA "Whitelist santize with HtmlAgilityPack . 14 June 2011." Whitelist santize with HtmlAgilityPack. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357422320. Accessed 24 November 2026.
Chicago "Whitelist santize with HtmlAgilityPack . 14 June 2011." Whitelist santize with HtmlAgilityPack. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357422320.
APA Whitelist santize with HtmlAgilityPack. (2026). Whitelist santize with HtmlAgilityPack . 14 June 2011. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357422320
- Ganss, Michael. HtmlSanitizer . 5 December 2023. retrieved 7 December 2023 · retrieved 2026-06-01 · rev 1357422320
Cite this reference
MLA "Ganss, Michael. HtmlSanitizer . 5 December 2023. retrieved 7 December 2023." Ganss, Michael. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357422320. Accessed 24 November 2026.
Chicago "Ganss, Michael. HtmlSanitizer . 5 December 2023. retrieved 7 December 2023." Ganss, Michael. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357422320.
APA Ganss, Michael. (2026). Ganss, Michael. HtmlSanitizer . 5 December 2023. retrieved 7 December 2023. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357422320
- JS HTML Sanitizer . GitHub . 14 October 2021. · retrieved 2026-06-01 · rev 1357422320
Cite this reference
MLA "JS HTML Sanitizer . GitHub . 14 October 2021." JS HTML Sanitizer. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357422320. Accessed 24 November 2026.
Chicago "JS HTML Sanitizer . GitHub . 14 October 2021." JS HTML Sanitizer. 2026-06-01. https://en.wikipedia.org/w/index.php?oldid=1357422320.
APA JS HTML Sanitizer. (2026). JS HTML Sanitizer . GitHub . 14 October 2021. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1357422320
Cite this article
MLA
"HTML sanitization." encyclopegia.org, 2026, https://encyclopegia.org/wiki/html-sanitization. Accessed 24 November 2026.
Chicago
"HTML sanitization." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/html-sanitization.
APA
encyclopegia.org. (2026). HTML sanitization. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/html-sanitization
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON