Re: Carriage returns don't display in HTML
| From: | Christopher J. Crane | Date: | Sat, 28 Sep 2002 13:24:18 +0000 |
| Subject: | Re: Carriage returns don't display in HTML | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-117938@lists.php.net to get a copy of this message | ||
On thing you could do is output <pre>tags around the text you want to
display. The <pre><> tags keeps simple formatting like tabs and new line
characters.
"Shane" <shane@delaplaine.com> wrote in message
news:CD44D03584C7A249A3F86891B24EB8EA41A93A@exch003intermedia.net...
Greetings folks.
I need my carriage returns to show up in my HTML output from my text form
field.
There is a JavaScript function that will convert carriage return to <BR>
tags, but is there a PHP function that will add <BR> or <P> tags to a text
form field in place of the carriage returns a user might add.
Thanks in advance!
-NorthBayShane