agent402.tools HTML Strip is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-30, last successful call 2026-09-24).
Strips all HTML tags from a raw HTML string and returns clean plain text, preserving paragraph and heading structure as newline-separated blocks.
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.
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.
POSThttps://agent402.tools/api/html-strip?utm_source=zero.xyzUse 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.
| Field | Type | Description |
|---|---|---|
| html | string | Raw HTML string to strip (max 5MB) |
| hidden | string | 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 | string | Optional CSS selector - strip only within this element (default: whole document) |
{
"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": []
}
}
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"