Question : strip html tags except <b></b> and <br /><br>

Hello,

I would like to strip all tags except, <br>, <br /> and <b>.

Is this possible?

<?=$description?>

Answer : strip html tags except <b></b> and <br /><br>

strip_tags takes a second argument which is the list of tags not to strip. See http://us3.php.net/strip_tags

$description = strip_tags($description,"<b><br>");
Random Solutions  
 
programming4us programming4us