Jens Oliver Meiert

Results 118 comments of Jens Oliver Meiert

@t3hp0rP, what were you minifying exactly? Might want to check on this in the HTML Minifier Next fork.

You can define the quote character with `quoteCharacter`/`--quote-character`. It seems to otherwise auto-detect, using the quote that requires less escaping, defaulting to `"` when equal. ~Will look into an adjustment...

Dto. Can’t reproduce by checking in the web versions both of [HTML Minifier](https://kangax.github.io/html-minifier/) and of [HTML Minifier Next](https://j9t.github.io/html-minifier-next/).

If of interest, HTML Minifier Next (compatible successor project) uses Lightning CSS which should make such fine-tuning easy. See e.g. [the docs in the HMN repo](https://github.com/j9t/html-minifier-next?tab=readme-ov-file#css-minification-with-lightning-css).

The problem here is the missing `svg` element. When that is there, HTML Minifier treats this correctly. HTML Minifier doesn’t offer this functionality, but see [your code in HTML Minifier...

@nsisodiya, if you are to maintain this I could add a reference to the docs of [HTML Minifier Next](https://github.com/j9t/html-minifier-next) (maintained fork of HTML Minifier).

Does this still persist? AFAIK think this used to be an issue but was fixed in [HTML Minifier Terser](https://github.com/terser/html-minifier-terser) (it’s also not an issue in [HTML Minifier Next](https://github.com/j9t/html-minifier-next)—maintained fork).

If of interest, this should work in HTML Minifier Next (maintained successor) via its recent [switch to Lightning CSS](https://github.com/j9t/html-minifier-next?tab=readme-ov-file#css-minification-with-lightning-css).