I'm using PHP 5.3.3
At the top of my page I am calling:
ob_start('ob_tidyhandler');
In php.ini:
tidy.default_config = /etc/php.tidy.default.tcfg
tidy.clean_output = 0
In php.tidy.default.tcfg:
indent: true
char-encoding: utf8
wrap: 250
clean: false
output-xhtml: true
show-warnings: true
show-errors: true
checking the running config:
[root@server2 html]# php -i | grep tidy
...
/etc/php.d/tidy.ini,
tidy
Extension Version => 2.0 ($Id: tidy.c 296107 2010-03-12 10:28:59Z jani $)
tidy.clean_output => 0 => 0
tidy.default_config => /etc/php.tidy.default.tcfg => /etc/php.tidy.default.tcfg
The page I am working with is purely build with the bootstrap UI
Whenever i have ob_start('ob_tidyhandler'); "enabled" it basically kills the page
All empty elements and self closing elements are removed.
I'm outputting XHTML via the config file for Tidy but I don't think it's actually working as intended.
My goal here is simply to have neatly indented code and nothing more.
Can anyone shed some light?