how to avoid new line using ` in javascript code example Example: Remove line breaks with JavaScript String.replace(/(\r\n|\n|\r)/gm," ")