Replace HTML <br> tags with newline characters.
npm install @derhuerst/br2nlYet another function to replace HTML tags with newline characters.
Note: This package does not do HTML sanitization! It merely replaces .


!ISC-licensed


``shell`
npm install @derhuerst/br2nl
`js
const br2nl = require('@derhuerst/br2nl')
console.log(br2nl('foo
bar'))
console.log(br2nl('foo
bar'))
console.log(br2nl('foo
bar'))
console.log(br2nl('foo
bar'))
console.log(br2nl('foo
bar'))
`
If you have a question or need support using br2nl`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.