I\'ve tried about everything to delete some extra \\n characters in a web application I\'m working with. I was hoping someone has encountered this issue before
\\n
In javascript, the .replace() method doesn't modify the string. It returns a new modified string, so you need to reference the result.
.replace()
text = text.replace(/\n/g,"")