I'm trying to replace the <h2> and </h2> tag from a string this way but it's not working:
$desc = get_post_meta($post_id , 'desc', true);
preg_replace("/<h2>/", '', $desc);
preg_replace("/</h2>/", ' - ', $desc);
Then I like to the strip all other tags this way strip_tags($desc)
Do it this way: