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('/(<' . $tag . '[^>]>)(.?)(</' . $tag . '>)|(<' . $tag . '[^>]*>)/i', '$2', $string);