You probably need to escape the /s with \s, or use a different delimiter for the expression.
Instead, though, how about using str_replace? and will be easy to match as they're not likely to contain any classnames or other attributes.
$text=str_replace('','',$text);
$text=str_replace('
','',$text);