Minify an HTML fragment
minify-htmlRemove comments and compact whitespace in HTML fragments. Use for small, controlled HTML snippets, not full document compilation. Returns an HTML string; preserves pre, textarea, script and style contents. Regression-test rendered output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | Original HTML source as text, up to 4096 characters. |