API Basics
Data Tools
★  Browser Bot
★  HTML Clean
★  HTML Extract
★  URL Info
Security and Networking

HTML Clean

Clean and sanitize untrusted HTML.

Use this API to make user supplied content (or content from external sources) safe and prevent cross-site scripting attacks (XSS). The HTML scrubbing method used is immune to XSS evasion techniques by using an HTML whitelist approach.

End Point

Test API
API Request
contentyesstringThe HTML content. This can be either a URL to load from, a file upload or an HTML content string
output-typeyesstringThe level of sanitization, possible values are:
plain-text: reduce the content to plain text only (no HTML tags at all)

simple-text: allow only very basic text formatting tags like b, em, i, strong, u

basic-html: allow advanced text formatting and hyper links

basic-html-with-images: same as basic html but also allows image tags

advanced-html: same as basic html with images but also allows many more common HTML tags like table, ul, dl, pre
API Response
Daily Limits
Free TierTier 1Tier 2Tier 3