tidy_get_output retourne une chaîne avec le HTML réparé.
<?php $html = '<p>paragraphe</i>';$tidy = tidy_parse_string($html); $tidy->CleanRepair();echo tidy_get_output($tidy);?>