{"uid":"cap_eOQ2qszBfTIENdb18dxgG","slug":"pennyrail-html-entity-encoder-f1c5f40e","name":"PennyRail HTML Entity Encoder","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/text.html-entities--html-entity-encode","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object"}}},"responseSchema":{"type":"object","additionalProperties":true},"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_O63QzMS04qH7cPntuX_OP","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":"Encodes a text string into HTML entities, escaping special characters for safe embedding in HTML documents","exampleAgentPrompt":"Can you HTML-entity-encode this string for me so it's safe to drop into an HTML page: '<script>alert(\"hello & world\")</script>'?","exampleUseCases":[{"title":"Sanitize user-generated content for web","prompt":"I have some user-submitted text that might contain angle brackets and ampersands — can you HTML-entity-encode it before I inject it into my webpage? The text is: 'Tom & Jerry's <favorite> show'"},{"title":"Escape template literals for email HTML","prompt":"Encode this text into HTML entities so it won't break my email template: 'Price: $5 < $10 & discount > 20%'"},{"title":"Prevent XSS in dynamic content","prompt":"I need to safely embed this user input into an HTML attribute — please HTML-entity-encode it first: '\" onmouseover=\"alert(1)'"}],"resultDescription":"Returns an object containing the HTML-entity-encoded version of the input text, with special characters such as <, >, &, \", and ' replaced by their corresponding HTML entity codes (e.g., &lt;, &gt;, &amp;, &quot;, &#39;).","failureModes":["Missing or empty 'input' object returns a validation error","Non-string text values in input may cause encoding errors or unexpected output","Network or payment failure may result in HTTP 402 or 5xx response","Overly large input strings may be rejected or truncated"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-use HTML entity encoding operation without setting up a local library, or when running in an environment where text processing libraries are unavailable. Ideal for agents that occasionally need to sanitize strings for HTML output without bundling a full encoding dependency.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:59:14.754Z","isFirstParty":false}