{"uid":"cap_FvkjnzN9gqAy-SWen09tf","slug":"irantools-strip-html-3d0ba9db","name":"IranTools Strip HTML","description":"Persian and Iranian utilities for AI agents, plus general text/Unicode tooling. Jalali (Solar Hijri) calendar conversion, Iranian national ID / SHEBA / bank card / postal code / economic code validation, province and city lookup, official public holidays, Persian text normalization, keyword extraction, sentence splitting, similarity, HTML stripping, RTL fixing, Unicode homoglyph folding, script detection, NFC/NFD normalization, grapheme counting, date description, business-day counting, slugify, FNV-1a hashing, Shannon entropy, format and encoding detection, byte sizes. Pay per call in USDC on Base via x402 - no signup, no API key, no KYC. The same tools are also exposed as MCP tools at /mcp.","url":"https://irantools.johnaio281.workers.dev/api/iran/strip_html?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qsrszqlS_HqFdlF6rg7zX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Removes HTML tags from a string, returning clean plain text","exampleAgentPrompt":"Strip the HTML tags from this string and give me the plain text: '<p>Hello <b>world</b>! <a href=\"#\">Click here</a></p>'","exampleUseCases":[{"title":"Clean scraped web page content","prompt":"I scraped some web content and it's full of HTML tags — can you strip all the markup from this so I just get the readable text? Here it is: '<div class=\"article\"><h1>Breaking News</h1><p>Something <em>important</em> happened today.</p></div>'"},{"title":"Sanitize user-submitted HTML input","prompt":"A user submitted this comment and it contains HTML tags. Strip out all the markup so I can store and display it as safe plain text: '<script>alert(\"xss\")</script><p>Great product!</p>'"},{"title":"Prepare HTML email body for plain-text summary","prompt":"I have an HTML email body and I need the plain text version of it for a summary. Please strip all the HTML tags from this: '<html><body><h2>Your order is confirmed</h2><p>Thank you for your purchase of <strong>3 items</strong>.</p></body></html>'"}],"resultDescription":"Returns a JSON object containing the plain text with all HTML tags removed, preserving the textual content between tags","failureModes":["Missing required 'text' field returns a 400-level error","Payment failure (insufficient USDC balance) results in 402 response before processing","Malformed JSON body may return a parsing error","Very large HTML strings may time out on the Cloudflare worker"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call HTML stripping utility without signup or API keys, especially if already using other IranTools utilities in the same workflow. It is ideal for agents processing Persian or multilingual web content since the service is built with RTL and Unicode awareness alongside standard HTML removal.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:19.767Z","isFirstParty":false,"canonicalSlug":"irantools-strip-html-3d0ba9db"}