I need your help again, people! =)
So here's my problem:
This line replaces only the first "\n" spec. character in my textarea, and this way everything's screwed up... I'm sending the replaced content of the textarea through AJAX to the server, in a GET method.
I've tried to just comment out this line to see whether this is necesarry, but then no "\n" is transferred at all... I'm using a PHP server side, and that works.
var content=document.getElementById("editor").value; content=content.replace("\n", "%nline!");
Or maybe should I split up the value of the textarea by "\n", and GET it to the server, and then write it out line by line?