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,194
  • 7
  • 48
  • 84

1 Answers1

41

Use to replace all '\n'

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