Source code for file /pattemplate/patTemplate/OutputFilter/Tidy.php
Documentation is available at Tidy.php
* patTemplate Tidy output filter
* $Id: Tidy.php 357 2005-02-04 15:07:43Z schst $
* Used to tidy up your resulting HTML document,
// Check to ensure this file is within the rest of the framework
* requires tidy extension
define( 'PATTEMPLATE_OUTPUTFILTER_TIDY_ERROR_NOT_SUPPORTED', 'patTemplate::Outputfilter::Tidy::1' );
* patTemplate Tidy output filter
* $Id: Tidy.php 357 2005-02-04 15:07:43Z schst $
* Used to tidy up your resulting HTML document,
* This has to be set in the final
* @return string compressed data
foreach ($this->_params as $opt =>
$value) {
tidy_setopt( $opt, $value );
tidy_parse_string($data);
$data =
tidy_get_output();
$tidy =
tidy_parse_string($data, $this->_params);
tidy_clean_repair($tidy);
$data =
tidy_get_output($tidy);