0 Replies Latest reply on May 7, 2011 12:00 PM by Help with charsing code

    How to get new lines when copy/paste from Excel to TextArea?

    Help with charsing code

      Hi guys, when i copy from an Excel two fields like this:

       

      123

      456

       

      And i paste it into my textArea... i see:

       

      123

      456

       

      But when i try to read the 'text'  i can't get the two numbers into an array, i can't !!  i read: 123456  (looks like there is no new line between the two numbers because of the copy/paste)

       

       

      But when i write it manually i can read the \n  and i can do it.

       

       

      Does anybody solve it? hint: i tried to read htmlText and i can see there is <p ...>  so i could solve the problem in this way, but there is too much information and i want simple text.

       

      Please help me, thanks