17

I have a super annoying raw data which is littered with and there's no way I can str.replace('↵','') is there? I tried it and didn't work, I couldn't find anything on this because when I search for it doesn't show up the ascii code.

user299709
  • 4,922
  • 10
  • 56
  • 88

1 Answers1

41

Use to replace all '\n'

str.replace(/\n/ig, '');
Dmitriy
  • 3,745
  • 16
  • 24