Thanks. That would work, but I don't think it would help. It would be somewhat clearer code though require a little more coding. Basically I would have to use the php strtok functionto tokenize the string based on newlines and send it to javascript one line at a time. I was looking to find something like the php heredoc feature which ...