random1 Posted November 23, 2009 Share Posted November 23, 2009 Hey All, I have the following code ($buffer is a string of all output for the page): $config = array('indent' => true, 'fix-uri' => true, 'wrap' => '1000'); /* Sources: http://tidy.sourceforge.net/docs/quickref.html#fix-backslash http://php.net/manual/en/book.tidy.php */ // Tidy $tidy = new tidy(); $tidy->parseString($buffer, $config, 'utf8'); $tidy->cleanRepair(); $buffer = tidy_get_output($tidy); [The tidy extension is enabled in my php.ini file] This produces $buffer being empty at the end with no output (no error). Is this how the 'tidy' extension is used? And ideas? Link to comment https://forums.phpfreaks.com/topic/182605-tidy-extension-for-php-help/ Share on other sites More sharing options...
random1 Posted November 23, 2009 Author Share Posted November 23, 2009 Got this fixed... buffer was not being passed further through code :< . fixed Link to comment https://forums.phpfreaks.com/topic/182605-tidy-extension-for-php-help/#findComment-963779 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.