4 Replies Latest reply on Sep 1, 2010 12:45 PM by Harbs.

    Replace Special Characters in a String

    mkeatley17

      Let's say someone copies the folowing list and pastes it into a Javascript prompt box:

       

      302304

      305678

      245675

       

      How do I manipulate the string so it reads:

       

      302304 305678 245675

       

      In other words, how do I replace the manual line breaks in a string with spaces?

       

      Thanks!