Prepend
<br>
to newlines in a string
$ npm install newline-br
const newlineBr = require('newline-br');
newlineBr('unicorn\nrainbow');
//=> 'unicorn<br>\nrainbow'
MIT © Sindre Sorhus
Prepend
<br>
to newlines in a string
$ npm install newline-br
const newlineBr = require('newline-br');
newlineBr('unicorn\nrainbow');
//=> 'unicorn<br>\nrainbow'
MIT © Sindre Sorhus