You may want to consume whitespace after the `div` and `p` elements in the event that they already have trailing whitespace

```php
array(':<br ?/?>:i', ':(</div>)\s*:i', ':(</p>)\s*:i')
```
and then replace with
```php
array("\n", "$1\n", "$1\n\n"),
```