Originally posted by krelian
But I want to strip out just the bold tags from my pages, for all bold markings, not just one. I don't plan on doing this manually, and the information is taken from a database.
If they're just bold tags then
$string = str_replace('<b>', '<b>', $string);
$string = str_replace('</b>', '</b>', $string);
You can get fancy and consider things like attributes and suchforth, and come up with an all-singing all-dancing bold-tag-escaper with a preg_replace
$string = preg_replace('#<(/?)b(\s[^>]*)?>#', "<$1b>", $string);
assuming you don't want to retain the attributes.
Then to strip the other tags it's just a call to strip_tags.