in reply to chomp works but then doesn't??
for ($textarea_value) { s/^\s+//; s/\s+\z//; s/[\x0D\x0A]+/\n/g; }
This isn't perfect, but it should help you get more consistent results with various web clients.
-- Chip Salzenberg, Free-Floating Agent of Chaos
|
|---|