{"ok":true,"tool":"HTML Minifier","operation":"minify-html","description":"Minify HTML by removing comments and whitespace while preserving pre/textarea/script/style content.","method":"POST","endpoint":"/api/html-minifier","webUrl":"https://toolhub-5eo.pages.dev/tools/html-minifier","parameters":{"type":"object","properties":{"html":{"type":"string","description":"The HTML to minify"},"removeComments":{"type":"boolean","description":"Strip comments (default true)"},"collapseWhitespace":{"type":"boolean","description":"Collapse inter-tag whitespace (default true)"}},"required":["html"]},"response":{"type":"object","properties":{"minified":{"type":"string"},"originalLength":{"type":"number"},"minifiedLength":{"type":"number"},"saved":{"type":"number"},"savedPercent":{"type":"number"}}},"example":{"request":{"html":"<div>\n  <p>hi</p>\n</div>"},"response_shape":{"type":"object","properties":{"minified":{"type":"string"},"originalLength":{"type":"number"},"minifiedLength":{"type":"number"},"saved":{"type":"number"},"savedPercent":{"type":"number"}}}},"howToCall":"POST a JSON body to https://toolhub-5eo.pages.dev/api/html-minifier. Returns {\"ok\":true,\"result\":{...}} on success or {\"ok\":false,\"error\":\"...\"} on failure. No auth, CORS-enabled.","parametersSummary":"  html (string, required) — The HTML to minify\n  removeComments (boolean, optional) — Strip comments (default true)\n  collapseWhitespace (boolean, optional) — Collapse inter-tag whitespace (default true)","curlExample":"curl -X POST https://toolhub-5eo.pages.dev/api/html-minifier -H \"Content-Type: application/json\" -d '{\"html\":\"<div>\\n  <p>hi</p>\\n</div>\"}'"}