sigil88
11/22/2017 - 3:14 PM

JS - string replace linebreaks

str.replace(/(?:\r\n|\r|\n)/g, '<br />');