<?php $str = '<br /> <br /> <br /> <br />'; $str = preg_replace("%\s*<br />\s*%", "<br />", $str); echo $str;
You have javascript disabled. You will not be able to edit any code.