|
Posted by khoa.tran on 04/29/06 20:37
joelbyrd@gmail.com wrote:
> Didn't know exactly where to post this, but: How do I get line breaks
> in a textarea? I'm pulling text from a database, and this text
> definately has line breaks in it, because I
> replaced all the line breaks with <br /> tags ( using the php function
> nl2br() ), and <br /> tags showed up in the textarea.
The line-break in textarea is "\n", not <br /> tag. So, if you get data
from one textarea and display in another textarea, you don't need to
convert anything.
Navigation:
[Reply to this message]
|