Answers for "how to remove trailing new line in js"

1

Remove line breaks with JavaScript

String.replace(/(\r\n|\n|\r)/gm," ")
Posted by: Guest on December-10-2020

Code answers related to "how to remove trailing new line in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language