{"uid":"cap_-YjUIWmgrNupiXNnT0NFh","slug":"delx-commerce-html-escape-api-35206866","name":"Delx Commerce HTML Escape API","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/html-escape?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Input field: text."}}},"responseSchema":{"type":"json","example":{"text":"a &lt;b&gt; &amp; &#x27;c&#x27; &gt; d","schema":"delx/util-html-escape/v1"}},"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_QJDhkLmTzm84mNVHJ70PO","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 string (e.g. <, >, &, quotes) to produce safe HTML-encoded text.","exampleAgentPrompt":"Escape the HTML special characters in this string so it's safe to embed in a webpage: 'Hello <World> & \"friends\" — it\\'s great!'","exampleUseCases":[{"title":"Sanitizing user comment for HTML display","prompt":"I need to safely display a user-submitted comment in my HTML page — can you escape all the special characters in this text so it won't break the markup or cause XSS: '<script>alert(1)</script> & welcome!'"},{"title":"Encoding dynamic content for email templates","prompt":"Take this product description and escape any HTML special characters so I can safely drop it into an HTML email template: 'Sizes: S < M < L & prices start at $9.99 — it\\'s a great deal!'"},{"title":"Pre-processing log output for HTML report","prompt":"I have a raw log line I want to show in an HTML report — please escape the special chars so angle brackets and ampersands render correctly: 'ERROR: connection to host <db-server> failed & retry > 3 times'"}],"resultDescription":"A JSON object containing a 'text' field with the input string HTML-escaped (e.g. < becomes &lt;, > becomes &gt;, & becomes &amp;, ' becomes &#x27;) and a 'schema' field identifying the response format as 'delx/util-html-escape/v1'.","failureModes":["Missing or empty 'text' field in request body — likely returns a 400 validation error","Payment failure or insufficient USDC balance via x402 — returns 402 Payment Required","Network or service timeout — returns 5xx error with no escaped output","Extremely large input strings may be rejected or truncated"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-use, no-signup HTML escaping utility, especially in agent workflows that already use x402 micropayments on Base or Solana. It is ideal for one-off or low-volume escaping tasks where embedding a full server-side sanitization library isn't practical, and when verifiable delivery and exact per-call pricing matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:02.968Z","isFirstParty":false,"canonicalSlug":"delx-commerce-html-escape-api-35206866"}