{"uid":"cap_jJlGsQhzySWiWgaGjEXGe","slug":"creator-desk-html-escape-utility-ff515e46","name":"Creator Desk HTML Escape Utility","description":"Machine-callable x402-paid utilities for autonomous agents.","url":"https://creator-desk-x402-isolated.onrender.com/v1/utility/html-escape?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{},"options":{"type":"object"}}},"responseSchema":{"type":"json","example":{"result":"example","operation":"html_escape"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_r7yNykjdb3FKm5mLYyW3s","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 value to produce safe, entity-encoded output suitable for insertion into HTML documents","exampleAgentPrompt":"Can you HTML-escape this string for me so it's safe to drop into an HTML page: '<script>alert(\"hello & goodbye\")</script>'?","exampleUseCases":[{"title":"Sanitizing user-submitted content","prompt":"I have some user-submitted text that contains angle brackets and ampersands — can you HTML-escape it before I render it on the page? The text is: 'Apples & Oranges <fresh> from the farm'."},{"title":"Encoding template variable for HTML email","prompt":"I need to safely insert a product name into an HTML email template. Can you escape this value for HTML: 'Johnson & Johnson's \"All-Natural\" <Moisturizer>'?"},{"title":"Preventing XSS in dynamic web content","prompt":"I'm building a page that echoes back a search query and I want to make sure it can't cause XSS. Please HTML-escape this query string: '<img src=x onerror=alert(1)>'."}],"resultDescription":"Returns a JSON object containing the HTML-escaped version of the input string under the 'result' key, along with an 'operation' field set to 'html_escape' confirming which transformation was applied.","failureModes":["Missing or null 'value' field may return an error or empty result","Malformed JSON request body causes a 400-level error","Payment failure via x402 protocol blocks processing and returns a 402 response","Extremely large input strings may cause timeouts or truncation","Invalid options object structure may be ignored silently or cause a validation error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to programmatically escape HTML entities in a string as part of an automated workflow, particularly when the task is a discrete, pay-per-call utility invocation via the x402 micropayment protocol. It is well-suited for agents that dynamically sanitize content before web rendering, email templating, or storage, and where a lightweight, purpose-built API call is preferable to implementing escaping logic inline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:30:15.753Z","isFirstParty":false,"canonicalSlug":"creator-desk-html-escape-utility-ff515e46"}