Prevent <br> after <div>
<p>I'm wondering how to remove all <code>&lt;br/&gt;</code> existing <strong>right after</strong> a div tag. Is this possible? As soon as some regular text has been printed after the <code>&lt;div&gt;</code> tag, <code>&lt;br/&gt;</code> should be allowed again.</p>

<p>The <code>&lt;br/&gt;</code> is added because of nl2br.</p>

<p>I don't want the users to be able to break the formatting of my pages by hitting enter a lot. This would be great to be able to fix.</p>

<p>Thank you.</p>
