<?php $str = <<<_ <p>my text 1</p><br /> some other content<br /> <p>some other paragraph followed by an html line break</p><br><br /> etc...<br /> _; echo preg_replace('~(</p>)<br ?/?>~', '$1', $str);
You have javascript disabled. You will not be able to edit any code.