Hey everyone i made a page that accepts comments.
when I display, i use the nl2br on comment output.
But if i enter lets say:
Test
Test
the empty spaces become <br />
How can I go by removing \n if there is more then 2 after text
So i can have:
Test<br />
<br />
Test
or if someput
Test
Test
Test
it would be
Test<br />
<br />
Test<br />
<br />
Test
-thanks