HTML sanitization

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

Uses your system voice; voice and rate in settings.

Q5636099Snapshot

≈ 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.

Provenance

snapshot html-sanitization-640765-63f6469b0aa2e285 · hash 63f6469b0aa2e285a31b1c1972963d3e8de3b2047d343a7c6f8475ae552917a9 · captured 2026-06-02 · not yet sealed in the ledger · verify the chain · version history

Cite this page as: encyclopegia.org, “HTML sanitization”, snapshot html-sanitization-640765-63f6469b0aa2e285. https://encyclopegia.org/a/html-sanitization

Sources cited in this revision

8 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.