HomeGuidesRecipesAPI ReferencePython SDK
Alation Help Center
Guides

HTML Sanitization

HTML Sanitization

Description

For sanitizing HTML, we have certain rules that we adhere to. We only allow a certain set of HTML Tags, HTML Attributes and HTML Styles in the body. All other HTML information is stripped by default.

White-listed HTML TAGS:

  • a
  • p
  • b, i, strong, em, u, s
  • pre
  • blockquote
  • span
  • img
  • br
  • td, tr, th, tbody, thead, table
  • caption
  • li, hr, ul, ol
  • h1, h2, h3, h4, h5
  • summary
  • div
  • iframe
  • code

White-listed HTML ATTRS:

  • src
  • href
  • style
  • colspan
  • border
  • cellpadding
  • cellspacing
  • align
  • class
  • height
  • width
  • frameborder
  • target
  • rel

White-listed HTML STYLES:

  • width
  • height
  • margin
  • margin-left
  • margin-right
  • margin-top
  • margin-bottom