# ONE Engine HTML Escape

> ONE Engine HTML Escape is a paid API for AI agents from one-search.one-engine.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Escapes special HTML characters in a text string, returning the HTML-encoded version safe for embedding in web pages.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v1/html/escape?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/one-engine-html-escape-31bfb90d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yBUfuEbYdp60oa3OQVMbA

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 one-engine-html-escape-31bfb90d -d '<json body>'
```

Example prompt: Can you HTML-escape this string for me so it's safe to put in a web page: '<b>ONE & Engine</b>'?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call HTML escaping utility without spinning up your own server-side library — especially in autonomous agent pipelines on Base using x402 micropayments where you want zero infrastructure overhead and only pay for what you use.

## Known failure modes

- Missing 'text' field in request body — likely returns a 400 or error response
- Empty string input — may return an empty escaped string or error
- Payment failure via x402 — returns 402 Payment Required if USDC payment on Base is not attached
- Network timeout on the Cloudflare Worker — rare but possible under load

## How this service works

Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.

## Output

A JSON object with a 'text' field containing the HTML-escaped version of the input string, where characters like <, >, &, ", and ' are replaced with their corresponding HTML entities (e.g. &lt;, &gt;, &amp;).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "&lt;b&gt;ONE &amp; Engine&lt;/b&gt;"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-html-escape-31bfb90d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from one-search.one-engine.workers.dev](https://www.zero.xyz/host/one-search.one-engine.workers.dev/llms.txt)
