Using tidy_clean_repair() : tidy_parse_string « HTML « PHP






Using tidy_clean_repair()

 
<?php
    $tidy = tidy_parse_string("<B>This is a simple,</I> but
                               <B>malformed</B> <U>HTML Document<U>");
    tidy_clean_repair($tidy);
    echo $tidy;
?>
  
  








Related examples in the same category

1.Passing Tidy Options at Runtime
2.Retrieving a Document from Tidy