javaScript elmerinar Saltos de linea textarea

var textarea = data.replace(/(\r\n|\n|\r)/gm, "")
Open Octopus