{"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). hiddenContent reports text a reader cannot see (HTML comments, display:none or hidden elements, white-on-white or off-screen text, zero-width characters) and quotes any of it that reads as an instruction to an AI; send hidden: \"drop\" to leave it out of the text. Faster and more predictable than running extract on a raw HTML string when you already have it.","url":"https://agent402.tools/api/html-strip?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"html":{"type":"string","description":"Raw HTML string to strip (max 5MB)"},"hidden":{"enum":["keep","drop"],"type":"string","description":"What to do with content a reader cannot see (HTML comments, display:none or hidden elements, white-on-white or off-screen text, zero-width characters): \"keep\" (default) converts it like everything else, \"drop\" removes it first. Either way hiddenContent reports what was found and quotes any hidden text that reads as an instruction to an AI."},"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":32,"hiddenContent":{"mode":"keep","found":{"comments":0,"cssHidden":0,"offscreen":0,"attributes":0,"hiddenAttr":0,"invisibleChars":0},"total":0,"instructionLike":[]}}},"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":{"p10Cents":"0.1000","medianCents":"0.1000","p90Cents":"0.1000","minCents":"0.1000","maxCents":"0.1000","p95Cents":"0.1000","sampleCount":1,"varies":false,"failureChargeRate":1},"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":1,"lastUsedAt":"2026-09-24T19:13:01.493Z","lastSuccessfullyRanAt":"2026-09-24T19:13:01.493Z","lastHealthCheckAt":"2026-10-30T07:15:43.540Z","isFirstParty":false,"canonicalSlug":"agent402-tools-html-strip-29e77ba8"}