pcre
Strip Specific HTML Tags
Strip specific HTML tags from a string—opposite of PHP's strip_tags(). Replace letter 'p' with your tag name. Using PHP preg_replace(), example:
preg_replace('/(]>)(.?)()|(]*>)/i', '$2', $string);
Submitted by Zachary Beschler - 7 years ago