Re: nl2br() Function for Paragraphs?

From: Date: Wed, 11 Jun 2003 20:50:58 +0000
Subject: Re: nl2br() Function for Paragraphs?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-151145@lists.php.net to get a copy of this message
On Wed, 11 Jun 2003, Nick Wilson wrote: >-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... Several examples appear in the user comments section of: http://us2.php.net/manual/en/function.nl2br.php >- >-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 >- >- >- >--- >-PHP General Mailing List (http://www.php.net/) >-To unsubscribe, visit: http://www.php.net/unsub.php >- ************************************** John Huggins jhuggins@va.net http://www.phphosts.com/ **************************************

« previous php.general (#151145) next »