![]() Topic awaiting preservation: Autoformatting textarea (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Juneau, Alaska |
![]() I'm currently working on an application that allows the user to paste a press release into a textarea field and send it to a database. The unfortunate issue is that line breaks and paragraphs are not automatically inserted. Short of forcing my superiors to learn HTML, how can I convince the server to automatically interpret new paragraphs as <p>? |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() php? |
Bipolar (III) Inmate From: |
![]() Your best bet would be some simple regex with PHP. |
Bipolar (III) Inmate From: Juneau, Alaska |
![]() Thanks for the suggestions. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() aeh... you're using a regular textarea? These things should end up as \r\n (on windows machines) in your php scripts. |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
![]() A line break is \n not /n that could cause a problem if you are using a regex. |
Bipolar (III) Inmate From: Juneau, Alaska |
![]() quote:
quote:
|