note 30115 rejected from function.nl2br by rioter

From: Date: Thu, 06 Mar 2003 22:08:42 +0000
Subject: note 30115 rejected from function.nl2br by rioter
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-44955@lists.php.net to get a copy of this message
I'm looking to display data from a textarea field exactly how it was entered, including spaces (simulating a pressed TAB key). For example, if people were logging hours on a project for Time & Material, I have people entering: Name Hours Joe 6 Sue 7 It is displayed in html as: Name Hours Joe 6 Sue 7 How do I capture the spacing? It always seems to get truncated or pressed together when displayed in html. However, if I edit it back in a textarea, it is fine. The nl2br() function works beautifully, it's just the losing of additional spaces between words that doesn't work for me.

« previous php.notes (#44955) next »