You format the string like this:
$string = strip_tags($string);
if you want to allow users to use only certain tags like BOLD (<b>) and UNDERLINE (<u>) you would format it like this:
$string = strip_tags($string,'<b><u>');
if $string = '<b><u><i><a href="blah.html">blah link</a></i></u></b>';
it would output: blah link