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

[EMAIL PROTECTED]
http://www.phphosts.com/

**************************************


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to