# HTML Named Character Reference Decoder

> HTML Named Character Reference Decoder is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-02).

Decodes HTML named character entities (e.g. &amp;, &lt;, &copy;) in a text string into their plain Unicode equivalents

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/html-named-decode?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/html-named-character-reference-decoder-5af246fc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3WVTiu5uOB_kBiAKC8qOW

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 html-named-character-reference-decoder-5af246fc -d '<json body>'
```

Example prompt: Can you decode all the HTML named entities in this string for me? 'AT&amp;T &copy; 2024 &mdash; All rights reserved &lt;legal@example.com&gt;'

## When to prefer this

Choose this endpoint when you need a fast, deterministic, offline decoding of HTML named character entities with no LLM or network calls involved. It is ideal for post-processing scraped HTML, normalizing CMS output, or cleaning API responses that contain escaped HTML. Prefer the free sandbox endpoint POST /v1/sandbox/html-named-decode for testing or non-production use to avoid the $0.008 USDC cost.

## Known failure modes

- Empty or missing 'text' field returns a validation error
- Input exceeding 100,000 characters is rejected
- Numeric HTML entities (&#169;) may not be decoded — only named references are in scope
- Malformed entity references may be left as-is or cause partial decoding
- Payment failure or insufficient USDC balance returns a 402 error

## How this service works

Call when an agent needs text decoded with html-named. No network and no LLM. Exact $0.008 USDC. Prefer unpaid POST /v1/sandbox/html-named-decode first.

## Output

Returns the input text with all HTML named character references (e.g. &amp;, &lt;, &gt;, &copy;, &nbsp;, &mdash;, etc.) replaced by their corresponding Unicode characters, as a decoded plain-text string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "hello"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/html-named-character-reference-decoder-5af246fc/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)
