{"id":"html-to-plain-text","version":"1.0.0","description":"Strip HTML and script/style text, decode supported references; collapse whitespace including inside pre elements.","supported_operations":["strip HTML tags to plain text","remove markup from HTML","extract readable text from an HTML fragment","decode HTML entities without a browser","turn HTML into safe plain text","remove script and style content"],"unsupported_operations":["rendering CSS or browser layout","fetching linked documents or executing scripts"],"semantics":["Spaces and tabs are collapsed throughout the extracted text, including inside pre elements; preformatted whitespace is not preserved.","Pure fragment transform: it never executes scripts, applies CSS, resolves URLs, fetches resources, or creates a DOM.","Comments, tags, and complete script/style elements are removed; quoted attribute values are tracked so their greater-than signs do not end tags; common block elements create LF boundaries.","One HTML-processing iteration is one UTF-16 code unit presented to the tokenizer; more than 4096 code units is rejected before tokenization.","Decodes semicolon-terminated numeric references and amp, lt, gt, quot, apos, and nbsp named references; other named references remain literal.","Reference: WHATWG HTML Living Standard, revision 2026-10-30, section 13 Parsing HTML documents; this bounded subset does not claim full tokenizer conformance."],"limits":{"max_input_bytes":4096,"max_output_bytes":16384,"max_iterations":4096},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["html"],"properties":{"html":{"type":"string","maxLength":4096}}},"output_schema":{"type":"object","additionalProperties":false,"required":["text","standard_version"],"properties":{"text":{"type":"string"},"standard_version":{"type":"string","const":"WHATWG HTML Living Standard 2026-10-30"}}},"examples":[{"input":{"html":"<p>Hello &amp; goodbye</p><script>alert(1)</script>"},"output":{"text":"Hello & goodbye","standard_version":"WHATWG HTML Living Standard 2026-10-30"}},{"input":{"html":"one<br>two &#x1F600;"},"output":{"text":"one\ntwo 😀","standard_version":"WHATWG HTML Living Standard 2026-10-30"}}],"execute_url":"/v1/tools/html-to-plain-text/versions/1.0.0/execute"}