# PennyRail HTML Entity Decode

> PennyRail HTML Entity Decode is a paid API for AI agents from pennyrail.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Decodes HTML entities in a text string, converting encoded characters like &amp;, &lt;, and &#160; back to their plain-text equivalents

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/nano/text.html-entities--html-entity-decode
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-html-entity-decode-ba757b3c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2YHKrUNbh0KgJ2sfOK1Wr

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 pennyrail-html-entity-decode-ba757b3c -d '<json body>'
```

Example prompt: Can you decode these HTML entities for me? The string is: 'Tom &amp; Jerry &mdash; &ldquo;The Classic&rdquo; &lt;1940s&gt;' — I need the actual readable characters back.

## When to prefer this

Use this endpoint when you need a reliable, pay-per-use HTML entity decoding service without deploying your own text-processing infrastructure — especially useful in agent pipelines processing scraped web content, sanitizing API responses, or cleaning user-generated HTML-encoded data at scale.

## Known failure modes

- Missing or malformed input object returns a validation error
- Non-string input value may cause unexpected output or error
- Payment failure (402) if USDC not provided or insufficient
- Malformed HTML entities in input may be left unchanged or cause partial decoding
- Empty string input returns empty string with no error

## How this service works

Machine-readable settlement service

## Output

Returns a JSON object containing the decoded text string with all HTML entities converted to their corresponding Unicode or ASCII characters (e.g. &amp; → &, &lt; → <, &#160; → non-breaking space).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-html-entity-decode-ba757b3c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennyrail.vercel.app](https://www.zero.xyz/host/pennyrail.vercel.app/llms.txt)
