Use HTML Minifier without a complicated workflow.
Minify HTML by removing comments, extra whitespace, optional spacing, and line breaks for compact output. This registration is prepared for a browser-side JavaScript UI, so no Python/API processing is required when the UI is implemented.