{"uid":"cap_gkkHb-K7L_T8Gy4jkgsbO","slug":"html-named-entity-encoder-215528f5","name":"HTML Named Entity Encoder","description":"Call when an agent needs text encoded with html-named. No network and no LLM. Exact $0.007 USDC. Prefer unpaid POST /v1/sandbox/html-named-encode first.","url":"https://agentshelf.syntexa.ch/v1/html-named-encode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","examples":["Hello, World!"],"maxLength":100000,"minLength":1,"description":"Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.007","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.007/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.007","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.007","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_r8dBYDIsMBLSVAnM0opt_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.007","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes text by converting special characters to their HTML named entity equivalents (e.g. & → &amp;, < → &lt;)","exampleAgentPrompt":"Can you encode this string using HTML named entities so it's safe to embed in HTML markup: 'Hello <World> & \"everyone\" — it\\'s alive!'","exampleUseCases":[{"title":"Safe HTML template injection","prompt":"I need to take this user-submitted comment and encode it with HTML named entities before inserting it into my HTML template: 'Tom & Jerry <cartoon> said \"hello\" to O\\'Brien'. Can you encode it?"},{"title":"Escaping code snippets for web display","prompt":"I want to display this code snippet safely on a webpage — please encode it with HTML named entities so angle brackets and special characters don't break the markup: '<script>alert(\"XSS\")</script>'"},{"title":"Email HTML body sanitization","prompt":"Before I embed this text in an HTML email body, encode all the special characters as HTML named entities: 'Prices start at €9.99 & include <VAT> — that\\'s a \"great\" deal!'"}],"resultDescription":"Returns the input text with all special characters replaced by their corresponding HTML named entity references (e.g. < becomes &lt;, & becomes &amp;, \" becomes &quot;, etc.), making the string safe for direct embedding in HTML documents.","failureModes":["Empty or missing 'text' field returns a validation error","Text exceeding 100,000 characters is rejected","Payment of $0.007 USDC not provided or x402 payment fails causes 402 response","Malformed JSON body returns 400 error"],"whenToPreferThis":"Choose this endpoint when you need deterministic, offline HTML named entity encoding without any LLM or network dependency. It is useful when you need to escape strings for safe HTML embedding and require exact, standards-compliant named entity output (e.g. &amp; rather than numeric &#38;). Note that an unpaid sandbox version at POST /v1/sandbox/html-named-encode should be preferred for testing or when cost must be avoided.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:49:58.646Z","isFirstParty":false,"canonicalSlug":"html-named-entity-encoder-215528f5"}