in reply to Formatting a Textarea field
Just remove all carriage returns from the text before submitting it to the database, and you should be fine.
EDIT: Something like the following, perhaps, though I imagine someone will come up with a better regex.
$text =~ s/(?:\r\n|\n\r)/\n/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Formatting a Textarea field
by bart (Canon) on Jun 05, 2005 at 22:39 UTC |