Posted by Ambush Commander on 05/19/07 01:53
To answer the original question, webrod, you can try enabling output
buffering, and then running Tidy on the contents of that. It's as
simple as adding this to the top of your PHP scripts:
<?php
ob_start('ob_tidyhandler');
?>
Although your mileage may vary depending on the version of Tidy and
PHP on your server. For more information, consult the manual:
http://php.net/manual/en/ref.outcontrol.php - Output Buffering
http://php.net/manual/en/ref.tidy.php
[Back to original message]
|