I was replacing new line with the following javascript code:
str.replace(/(\r\n|\n|\r)/gm," ")
However, came across some Unicode new line Unicode Character 'NEXT LINE (NEL)' (U+0085).
How to remove new lines from a string safely i.e. all these weird new lines will be removed as well?
Is it an established API for javascript?