// This array is for stripping opening and closing tags AND what's in between
Code: Select all
$tags_and_content_to_strip = Array("title");
foreach ($tags_and_content_to_strip as $tag) {
$contents = preg_replace("/<" . $tag . ">(.|\s)*?<\/" . $tag . ">/","",$contents);
}So, i take the ">" of the expression, and add one " ", tried "\ " too, but no luck.