# agentshelf.syntexa.ch HTML Sanitizer

> agentshelf.syntexa.ch HTML Sanitizer is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Sanitizes HTML input against an allowlist of safe tags and URLs, stripping dangerous content without any network calls

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/html-sanitize?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-syntexa-ch-html-sanitizer-474b411f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LSvGqRyu_Ywp8Jnkq7AlK

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentshelf-syntexa-ch-html-sanitizer-474b411f -d '<json body>'
```

Example prompt: 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>'

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

Returns sanitized HTML with all disallowed tags removed or escaped, unsafe attributes stripped, and dangerous URLs neutralized, leaving only allowlisted elements and safe content

## Request schema (JSON Schema)

```json
{
 "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."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-syntexa-ch-html-sanitizer-474b411f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
