/html-minify

Reduce file size by shortening URLs and safely removing all standard comments and unnecessary white space from an HTML document.

Primary LanguagePHP

HTML Minify

This class does not require a CMS like WordPress, but there is a WordPress version available.

FAQ & Changelog

To minimize maintenance, check out the info at the WordPress plugin page: http://wordpress.org/extend/plugins/wp-html-compression/

Example Usage

Inline HTML

<?php require_once 'html-minify.php'; ?>
<html>
…
</html>

External HTML

<?php

require_once 'html-minify.php';

echo file_get_contents('markup.html');

?>

License

This plugin is dual licensed under the MIT and GPL licenses.