<?php include_once("Encode.class.php"); $encode = new Encode($_SERVER['HTTP_ACCEPT_ENCODING']); ob_start('Encode::removeWhitespace'); ?> <html> <bod> <div> <h3>Hello world</h3> <p>This will be encoded</p> </div> </bod> </html> <?php $encode->closeConnection(ob_get_contents(), 200, 'HTML');
info at phpclasses dot org