Re: [PHP] new lines in textareas?
- From: pscott@xxxxxxxxx (Paul Scott)
- Date: Sun, 30 Mar 2008 18:40:09 +0200
On Sun, 2008-03-30 at 12:29 -0400, tedd wrote:
At 9:26 PM -0700 3/29/08, Mary Anderson wrote:
Hi all,
I have a php script which produces text which is to be displayed
in a textarea. I have the wrap for the text area set to 'hard'. I
need to have newlines inserted in the text.
"\n" and "<br>" don't work. They just get quoted literally in
the text. I suspect I need to use htmlspecialchars , but don't know
what special character to feed it.
Only getting to this now, but doesn't nl2br() do what you want?
--Paul
--
------------------------------------------------------------.
| Chisimba PHP5 Framework - http://avoir.uwc.ac.za |
:------------------------------------------------------------:
All Email originating from UWC is covered by disclaimer
http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm
- Follow-Ups:
- Re: [PHP] new lines in textareas?
- From: "jeffry s"
- Re: [PHP] new lines in textareas?
- References:
- new lines in textareas?
- From: Mary Anderson
- Re: [PHP] new lines in textareas?
- From: tedd
- new lines in textareas?
- Prev by Date: Re: [PHP] new lines in textareas?
- Next by Date: Re: [PHP] Google Pagerank script
- Previous by thread: Re: [PHP] new lines in textareas?
- Next by thread: Re: [PHP] new lines in textareas?
- Index(es):
Relevant Pages
|