Can customize the Html tidy way : 

 htmlawed : see http://code.google.com/p/htmlawed/ 
 tidy : auto mode for tidy (use php5 tidy if available) 
 php5tidy : http://php.net/manual/en/ref.tidy.php 
 typo3_tidy : Typo3 original tidy function (use file ca