I have this interesting function that I\'m using to create new lines into paragraphs. I\'m using it instead of the nl2br() function, as it outputs better formatted
nl2br()
I also wrote a very simple version:
function nl2p($text) { return ''.str_replace(array("\r\n", "\r", "\n"), '', $text).''; }
'.str_replace(array("\r\n", "\r", "\n"), '
', $text).'