Answers for "javascript preserve line breaks"

1

Remove line breaks with JavaScript

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

javascript line break

//in JavaScript, you can declare a line break (or new line)
//with the \n character.
var linebreak = '\n';
Posted by: Guest on March-26-2020

Code answers related to "javascript preserve line breaks"

Code answers related to "Javascript"

Browse Popular Code Answers by Language