Re: Formatted text from mySQL DB
| From: | Curt Zirzow | Date: | Tue, 05 Aug 2003 13:46:31 +0000 |
| Subject: | Re: Formatted text from mySQL DB | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-158281@lists.php.net to get a copy of this message | ||
* Thus wrote David Nicholson (me@djnicholson.com):
> Hello,
>
> The newlines will be there if you view the source of your page.
> Browsers do not render newlines in the source as newlines in the
> browser display, as you have found out you have to convert the
> newlines to <BR>s.
It probably could be add that html doesn't render newlines 'by
default'. You can wrap the text inside a html tag that has the
style 'white-space: pre' set on it.
cheers,
Curt
--
"I used to think I was indecisive, but now I'm not so sure."