使用单个类在 PHP 中压缩 HTML
/> becomes >. type="text/css" and type="text/javascript" in style and script tags.script).My content.code, pre, script and textarea from being minified.ZIP
Download tiny-html-minifier.php or the whole ZIP.
Composer
You can install it with Composer as well.
Tiny Html Minifier
Tiny Html Minifier
false,
'disable_comments' => false,
]);Spaces are preserved (except for most elements within ``). It's good when using the elements inline. This is the default.
My link
My link
Spaces are collapsed. The text inside the element is still untouched. Set this value to true and you will save a few extra bytes.
My link
My link
This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.
It is discouraged to use this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.
If you want to make a donation, you can do that by sending any amount https://www.paypal.me/DevoneraAB
暂无开放 Issues,或尚未同步最近议题。