API Basics
Data Tools
WWW
Browser Bot
★  HTML Clean
URL Info
Telephony
Geolocation
Security and Networking
E-commerce
Imaging
Legacy APIs

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

https://neutrinoapi.net/html-clean
Test API
API Request
ParameterRequiredTypeDefaultDescription
contentyesstringThe HTML content. This can be either a URL to load from, a file upload (multipart/form-data) 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
API Performance
CharacteristicValueDescription
Avg Latency20msAverage RTT for requests within the same data center/region
Max Rate2/secondMaximum inbound request rate. Exceeding this will result in request throttling
Max Concurrency250Maximum concurrent/simultaneous requests. Exceeding this will result in error code 06 [TOO MANY CONNECTIONS]

API Example
curl https://neutrinoapi.net/html-clean \ --header "User-ID: <your-user-id>" \ --header "API-Key: <your-api-key>> \ --data-urlencode "output-type=plain-text" \ --data-urlencode "content=Some HTML to clean..." \ --output "html-clean.txt"