<?php $tidy = tidy_parse_string("<B>This is a string</B>"); $data = tidy_get_output($tidy); echo $tidy; ?>