Passing Tidy Options at Runtime : tidy_parse_string « HTML « PHP






Passing Tidy Options at Runtime

 
<?php
    $options = array("show-body-only" => true);
    $tidy = tidy_parse_string("<B>Hello<I>World!</B></I>", $options);
    echo $tidy;
?>
  
  








Related examples in the same category

1.Using tidy_clean_repair()
2.Retrieving a Document from Tidy