HTML Entity Encoder/Decoder API
Encode and decode HTML entities (XSS prevention, email templates). Supports named entities (& < >), numeric, and Unicode. Batch up to 100 strings. Free.
Quick Start
# Health check
curl https://api.lazy-mac.com/html-entity-api/health
# API info
curl https://api.lazy-mac.com/html-entity-api
Endpoints
{'path': '/encode', 'method': 'POST', 'description': 'Encode special chars to HTML entities'}{'path': '/decode', 'method': 'POST', 'description': 'Decode HTML entities to text'}{'path': '/batch', 'method': 'POST', 'description': 'Batch encode/decode'}{'path': '/health', 'method': 'GET', 'description': 'Health check'}
Pricing
| Plan | Price | Features |
|---|---|---|
| Free | $0/mo | 100 req/day, core endpoints |
| Pro | $Free / $5/mo | Unlimited, all endpoints, MCP |
MCP Integration
This API supports the Model Context Protocol (JSON-RPC 2.0):
curl -X POST https://api.lazy-mac.com/html-entity-api/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"tools/list","id":1}'
Get Your API Key
Get started on Gumroad — free tier available.
Top comments (0)