469,278 Members | 2,391 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,278 developers. It's quick & easy.

Multiple line strings

8
Hi

I am using this line of code

Expand|Select|Wrap|Line Numbers
  1. var str = (<r><![CDATA[{JR_ADDRESS}]]></r>).toString();
to convert a multiple line string to a single line so I can remove the line breaks

It works great in Firefox but doesn't in IE. I can't understand why!!!

Any ideas?? Is there a IE friendly way of doing this?

Many thanks?
Nov 19 '07 #1
1 1266
acoder
16,027 Expert Mod 8TB
Try replacing the newline \n and carriage return \r characters with the empty string.
Nov 19 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

32 posts views Thread by tshad | last post: by
19 posts views Thread by santosh | last post: by
4 posts views Thread by pinkfloydhomer | last post: by
13 posts views Thread by a.zeevi | last post: by
3 posts views Thread by computerwolf8 | last post: by
reply views Thread by Fir5tSight | last post: by
1 post views Thread by Fir5tSight | last post: by
16 posts views Thread by devicerandom | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.