$a="This is a string with HTML tags";
$a=strip_tags($a);
print $ a;
?>
2
$a="This is a string with HTML tag font>";
ereg_replace("^<.+>$", "", $a);
print $a;
?>
3 Keep the original content
$a="This is a string with HTML tag";
ereg_replace("< ;", "<", $a);
ereg_replace(">", ">", $a);
print $a;
?>