{"uid":"cap_dTsuBm_4Dw5Nlb6c02R8G","slug":"agent402-tools-html-strip-29e77ba8","name":"agent402.tools HTML Strip","description":"Strip all HTML tags and return plain text. Preserves block-level structure (paragraphs and headings become newline-separated). Faster and more predictable than running extract on a raw HTML string when you already have it.","url":"https://agent402.tools/api/html-strip","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"html":{"type":"string","description":"Raw HTML string to strip (max 5MB)"},"selector":{"type":"string","description":"Optional CSS selector - strip only within this element (default: whole document)"}}},"responseSchema":{"type":"json","example":{"text":"Title\n\nFirst paragraph.\n\nSecond.","chars":30}},"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_iXcifaeWUUZGKWifNvDab","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":"Strips all HTML tags from a raw HTML string and returns clean plain text, preserving paragraph and heading structure as newline-separated blocks.","exampleAgentPrompt":"Strip all the HTML tags from this string and give me just the readable text, keeping paragraphs and headings as separate lines: '<html><body><h1>Hello</h1><p>World</p></body></html>'","exampleUseCases":null,"resultDescription":"A plain text string with all HTML tags removed. Block-level elements like paragraphs and headings are preserved as newline-separated content, making the output structurally readable without any markup.","failureModes":["HTML string exceeds 5MB limit — request rejected","Invalid CSS selector provided — selector parsing error returned","Malformed or non-HTML input — may return empty string or partial output","Network timeout for very large payloads near the size limit"],"whenToPreferThis":"Use this endpoint when you already have a raw HTML string in memory and need fast, predictable tag stripping with structural preservation. It is faster and more deterministic than using a full web-extraction or scraping endpoint on a raw HTML string. Prefer this over general-purpose extract endpoints when you don't need content inference or AI summarization — just clean text.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:43:39.933Z","isFirstParty":false}