html-pretty-min
html-pretty-min copied to clipboard
PHP library for minifying and indenting HTML documents that works on the DOM tree
Encountering unexpected error while parsing HTML5 tags: ``` DOMDocument::loadHTML(): Tag article invalid in Entity, line: 7 D:\...\Pasap\vendor\wa72\html-pretty-min\PrettyMin.php:76 ``` Here is the code I'm trying to minify, https://validator.w3.org says it's valid:...
Hello, I like your library, very useful for my project. I was able to successfully indent all the nodes with spaces with this code patch. Otherwise, it's a mix of...
If any text node includes Thai characters, the script ends up rewriting them into HTML-escaped characters, but not the right ones. Input: ```html โหลด-เกม ``` Output: ```html โหลด เกม ```
I have tried many minifiers, and believe this is the best one to provide css and js minified. https://github.com/matthiasmullie/minify
When I load a HTML page like this, All my META descriptions disappear. Does html-pretty-min has a method to keep META and OG safe ? ```
The list `keep_whitespace_around` is missing some elements: https://github.com/wasinger/html-pretty-min/blob/a9764406f423a3a320cf9767dfd40bfaa7785ab7/PrettyMin.php#L44-L50 As per https://html.spec.whatwg.org/multipage/text-level-semantics.html I think these should also be included: * s * ruby, rt, rp * data * time * u...