Minify HTML Output Using PHP

1
2
<?php
/**
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This snippet is a quick and easy way to compress and minify your HTML output. To implement add `ob_start("minify_output")` to your main header.php file of your WordPress theme.

2 Responses

Thanks for it, it was very useful.
Thanks for it, it was very useful.

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.