Html sanitize
html_sanitizeSanitize untrusted HTML before feeding to an LLM or UI: strips XSS scripts/iframes/on* handlers/javascript: URIs, detects & removes hidden CSS prompt-injection blocks, and returns safeHtml, clean Markdown, plainText & securityReport. $0.001 per call over x402 or X-API-Key. Call once without payment for terms, then call again with payment.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"html": "<html>"
},
"name": "html_sanitize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | Untrusted HTML to sanitize and convert to safe Markdown (up to 256 KB). | |
| payment | No | signed x402 payment payload (PAYMENT-SIGNATURE). |