{"uid":"cap_yBUfuEbYdp60oa3OQVMbA","slug":"one-engine-html-escape-31bfb90d","name":"ONE Engine HTML Escape","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v1/html/escape?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"text":"&lt;b&gt;ONE &amp; Engine&lt;/b&gt;"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__nqXj1xOszG1uQoI1TCVS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Escapes special HTML characters in a text string, returning the HTML-encoded version safe for embedding in web pages.","exampleAgentPrompt":"Can you HTML-escape this string for me so it's safe to put in a web page: '<b>ONE & Engine</b>'?","exampleUseCases":[{"title":"Sanitize user-generated content","prompt":"I need to make this user-submitted comment safe to render in HTML — can you escape all the special characters in: '<script>alert(\"XSS\")</script> Hello & welcome!'"},{"title":"Encode product descriptions for HTML templates","prompt":"Take this product description and escape it so I can safely inject it into an HTML template: 'Sizes: S, M & L — price <$50 for most items'"},{"title":"Prepare API response text for web display","prompt":"This API returned some text with angle brackets and ampersands in it — can you HTML-encode it so it displays correctly in the browser without breaking the markup: 'Result: a < b && c > d'"}],"resultDescription":"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;).","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:03.335Z","isFirstParty":false,"canonicalSlug":"one-engine-html-escape-31bfb90d"}