I have a text in a textarea and I read it out using the .value attribute.
Now I would like to remove all linebreaks (the character that is produced when you press
If it happens that you don't need this htm characte   shile using str.replace(/(\r\n|\n|\r)/gm, "") you can use this str.split('\n').join('');
 
str.replace(/(\r\n|\n|\r)/gm, "")
str.split('\n').join('');
cheers