Multiple line strings

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stewc
    New Member
    • Oct 2007
    • 8

    #1

    Multiple line strings

    Hi

    I am using this line of code

    Code:
    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?
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Try replacing the newline \n and carriage return \r characters with the empty string.

    Comment

    Working...