nl2br() Function for Paragraphs?

From: Date: Wed, 11 Jun 2003 20:46:38 +0000
Subject: nl2br() Function for Paragraphs?
Groups: php.general 
Request: Send a blank email to php-general+get-151137@lists.php.net to get a copy of this message
Hello everyone, Has anyone written a function that does what nl2br() does but wraps text in a <p></p>'s instead? I'm a bit of a clean html type and nl2br() just leaves me wishing there was a better way... I'm afraid my regex is dreadfull so I just hoped someone might have already done it and be willing to share. ;-) Many thanks... -- Nick WIlson

« previous php.general (#151137) next »