8 lines
117 B
JavaScript
8 lines
117 B
JavaScript
'use strict'
|
|
|
|
const regex = /<br\b[^>]*>/gi
|
|
|
|
const br2nl = html => html.replace(regex, '\n')
|
|
|
|
module.exports = br2nl
|