<?php $body = 'sdfsf dfg <h2 dgdfg>dxfdgdfg </h2> dfdsgdfg > sdf<>'; $body = preg_replace("/<h2.*?<\/h2>/","", $body); var_dump($body);
You have javascript disabled. You will not be able to edit any code.