# Saylor Innovations HTML Escape/Unescape

> Saylor Innovations HTML Escape/Unescape is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-21).

Converts text to HTML entities (escaping) or converts HTML entities back to plain text (unescaping)

## Facts

- Endpoint: GET https://saylorinnovations.com/api/encode/html?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-html-escape-unescape-a8fad374
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OP98IpA53IE5FNIZQ5ofH

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 saylor-innovations-html-escape-unescape-a8fad374
```

Example prompt: Can you HTML-escape this string for me so I can safely put it in a web page: '<script>alert("hello & goodbye")</script>'?

## When to prefer this

Use this endpoint when you need a simple, reliable, stateless HTML escape or unescape operation via HTTP without setting up a local library. Ideal for agents or pipelines that need to sanitize text for HTML embedding or decode scraped HTML entities on the fly with a pay-per-call model.

## Known failure modes

- Missing required 'text' query parameter returns an error
- Invalid 'op' value (not 'escape' or 'unescape') may default to escape or return an error
- Empty string input may return an empty result
- Very long strings may hit request size limits

## How this service works

HTML escape and unescape - convert special characters to HTML entities and back

## Output

A JSON object containing the operation performed ('escape' or 'unescape') and the resulting converted string, plus an optional timestamp of when the operation ran.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "op": {
       "type": "string",
       "description": "escape (default) or unescape"
      },
      "text": {
       "type": "string",
       "description": "Text to escape or unescape"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "op",
      "result"
     ],
     "properties": {
      "op": {
       "type": "string",
       "description": "Operation performed"
      },
      "result": {
       "type": "string",
       "description": "Result of the operation"
      },
      "checked_at": {
       "type": [
        "string",
        "null"
       ],
       "description": "Time the check was run (UTC)"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-html-escape-unescape-a8fad374/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
