{"uid":"cap_BClhkIghga9jpyxz3sFRe","slug":"signaldesk-ai-html-escape-f11b045a","name":"SignalDesk AI HTML Escape","description":"Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.","url":"https://x402-agent.kariguetoazul.workers.dev/api/encoding/html-escape?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":4096,"description":"Text to process."}}},"responseSchema":{"type":"json","example":{"escaped":"&lt;a title=&quot;hi&quot;&gt;&amp;&lt;/a&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_4z3nL9ASdMEKGAuNM8Yi3","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, converting them to safe HTML entities","exampleAgentPrompt":"Escape this string so it's safe to put in HTML: '<a title=\"hi\">&</a>' — convert all the special characters to HTML entities.","exampleUseCases":[{"title":"Sanitize user comment before rendering","prompt":"I need to HTML-escape this user-submitted comment before dropping it into my webpage: '<script>alert(\"xss\")</script>'. Can you convert all the special characters to safe HTML entities?"},{"title":"Encode dynamic content for email template","prompt":"Take this product description and escape it for HTML so I can safely insert it into an email template: 'Price: $5 & under — size < 10cm, model \"Pro\"'."},{"title":"Prepare API response text for HTML display","prompt":"I'm getting raw text back from an API that might contain <, >, &, and quote characters — can you HTML-encode this string so it won't break my page layout: 'Tom & Jerry: \"Cat & Mouse\" <classic>'?"}],"resultDescription":"A JSON object with an 'escaped' field containing the input text with all HTML special characters converted to their entity equivalents (e.g. < becomes &lt;, > becomes &gt;, & becomes &amp;, \" becomes &quot;).","failureModes":["Input text exceeds 4096 character limit — request rejected","Missing or empty 'text' field — may return error or empty escaped string","Payment not included or insufficient — 402 Payment Required response","Non-string input type for 'text' field — schema validation error"],"whenToPreferThis":"Choose this endpoint when you need a simple, reliable HTTP API to HTML-escape arbitrary text strings up to 4096 characters, especially in serverless or agent-driven pipelines where a local library is unavailable or inconvenient. Suitable for one-off or low-volume escaping tasks given the per-call micropayment cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:41:23.948Z","isFirstParty":false,"canonicalSlug":"signaldesk-ai-html-escape-f11b045a"}