[Javascript] removing line feed carriage return

Paul McGuire pmcguire at cguk.co.uk
Tue Mar 2 06:49:24 CST 2004


Thanks your making a stressful day much easier!

----- Original Message ----- 
From: "Håkan Magnusson" <hakan at backbase.com>
To: "[JavaScript List]" <javascript at LaTech.edu>
Sent: Tuesday, March 02, 2004 12:42 PM
Subject: Re: [Javascript] removing line feed carriage return


> Change 'str' to the name of your variable.
>
> str.replace('\n', '', 'g');
>
> Regards,
> H
>
> Paul McGuire wrote:
>
> > Can anyone help me I have a string that has linebreaks in it I need all
> > Char(13) and Char(10) to be removed so I can print it all on one line in
a
> > text area.
> >
> > How do I remove replace or filter these characters in Javascript?
> >
> > _______________________________________________
> > Javascript mailing list
> > Javascript at LaTech.edu
> > https://lists.LaTech.edu/mailman/listinfo/javascript
> >
> >
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list