[ic] Cleaning carriage returns etc.

Rene Hertell rene@hertell.com
Fri, 13 Apr 2001 01:47:40 +0300


> Hi list,
>
> I bumped in problems with a field that I clean from tabs, carriage returns
> etc. The formatting afterwards is not really what I want when I
> display the
> value somewhere...
>
> Can someone help me with some tips in what way <textarea> fields should be
> collected and stored (eg. tab replaced with 3 spaces etc.), in
> other words:
> what is safe to store in a tab-delimited file and what is not, and how
> should these characters be replaced/removed.
>
> Regards, René

I forgot to ask also that how should I handle the displaying for this value
in eg. a table cell after it is pulled out from the database...



I add this example, if my question was too fuzzy...

[example <textarea> submission]
blahblahblah

blahblah
blahblah
blahblah
blahblah
   blahblah
   blahblah
   blahblah

blahblah
[/example]



Regards, René