Re: Enter to BR
| From: | Richard Lynch | Date: | Wed, 27 Jun 2001 06:06:22 +0000 |
| Subject: | Re: Enter to BR | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-55354@lists.php.net to get a copy of this message | ||
Some comments on these answers :-)
nl2br is the correct answer.
preg is like shooting a fly with a cannon, and str_replace would be right,
if nl2br wasn't right, which it is.
And every TEXTAREA tag on the planet should have WRAP=VIRTUAL in it. In
fact, if *I* were in charge of HTML, there would be no other choice for
TEXTAREA wrapping. The rest suck. I *hate* sites that don't bother to do
this, so you're stuck with this stupid box that requires you to scroll like
crazy or send them badly-wrapped data.
Okay, I've spewed enough vile on TEXTAREA now :-)
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm