Closed Thread Icon

Topic awaiting preservation: stripping new lines in javascript (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8916" title="Pages that link to Topic awaiting preservation: stripping new lines in javascript (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: stripping new lines in javascript <span class="small">(Page 1 of 1)</span>\

 
alcooper
Nervous Wreck (II) Inmate

From:
Insane since: Oct 2003

posted posted 10-21-2003 11:40

I would like to detect and strip out new line characters in a string withing JavaScript. Can someone tell me the best way to do this?

Andrew.

alcooper
Nervous Wreck (II) Inmate

From:
Insane since: Oct 2003

posted posted 10-22-2003 08:08

I have worked all of this out. Thanks.

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 10-22-2003 11:17

alcooper: Welcome - glad to hear you have fixed your problem would you like to share the solution?

We have a similarish FAQ here:

:FAQ: How do I strip HTML tags using JavaScript?

and this would help expand on that.

As you are new here you might want to nip along to the Reception Room (click the link in my sig below).

___________________
Emps

The Emperor dot org

« BackwardsOnwards »

Show Forum Drop Down Menu