Hi, can anyone tell me why when I use the following code, it doesn't strip the html tags except for the ones indicated which should be left? In particular I'm trying to remove <font size=> and <img> tags but this code doesn't seem to be doing the trick.
if(strlen($info[bodytext]) > $desc) { // Limit title length to avoid wrap
$bodytext = strip_tags($info[bodytext], '<a><i><b><ul><li>');
$bodytext = substr($info[bodytext],0,$short);
$bodytext .= "...[<a href=\"modules.php?op=modload&name=Journal&file=search&bywhat=aid&forwhat=$joid\"></font><font
size=1>more</font></a>]";
}
else if(strlen($info[bodytext]) <= $desc) { // Limit title length to avoid wrap
$bodytext = strip_tags($info[bodytext], '<a><i><b><ul><li>');
$bodytext = substr($info[bodytext],0,$short);
$bodytext .= "...[<a href=\"modules.php?op=modload&name=Journal&file=search&bywhat=aid&forwhat=$joid\"></font><font
size=1>more</font></a>]";
}