I\'m pulling in some data from an api and console.log in chrome:
Chrome prints it like asdföklajsd↵New line!
I would like to replace the ↵ character with a
It's a return character.
Try replacing them like this:
myString = myString.replace(/(\r\n|\n|\r)/gm, "<br />");