I’m wondering how to remove all <br/> existing right after a div tag. Is this possible? As soon as some regular text has been printed after the <div> tag, <br/> should be allowed again.
The <br/> is added because of nl2br.
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.
Thank you.
This is based on: How to convert multiple <br/> tag to a single <br/> tag in php