{"uid":"cap_TLV1LSwVcItpmJPp-8-p5","slug":"pennyrail-html-entity-escaper-97ca8f91","name":"PennyRail HTML Entity Escaper","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/text.html-entities--escape-html","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_zqmFA_OiZ-M3HvBS933xU","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 characters in text to safe HTML entities (e.g. converts < to &lt;, & to &amp;)","exampleAgentPrompt":"Escape this string so it's safe to embed in HTML: 'Hello <World> & \"friends\"' — I need all the special characters converted to HTML entities.","exampleUseCases":[{"title":"Sanitize user-generated blog content","prompt":"I have a user comment that contains angle brackets and ampersands — can you escape it into HTML entities so it's safe to render on the page? The text is: 'Tom & Jerry <the show> is \"great\"'."},{"title":"Prevent XSS in email template renderer","prompt":"Before I inject this user-supplied subject line into my HTML email template, escape all HTML special characters for me: '<script>alert(1)</script> — 50% off today!'"},{"title":"Encode code snippets for display","prompt":"I want to show this code example literally in my web page without the browser interpreting the tags — please convert '<div class=\"box\"> & </div>' into HTML entities."}],"resultDescription":"Returns an object containing the escaped version of the input text with all HTML-reserved characters (< > & \" ') replaced by their corresponding named or numeric HTML entities, making the string safe for literal injection into HTML documents.","failureModes":["Missing or empty 'input' object returns a validation error","Non-string or unexpected input type may return a generic error response","Payment failure (x402) results in 402 Payment Required before processing","Malformed request body returns 400-class error","Very large input strings may hit payload size limits"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call microservice to HTML-escape arbitrary text strings without spinning up a library or dependency. Particularly useful in agent pipelines that need to safely render user-generated or external content inside HTML, or when building serverless workflows where a stateless transformation call is preferable to bundling an escaping library.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:13:23.729Z","isFirstParty":false}