Philipp Partosch 46a936d7de added all files to project | 2 years ago | |
---|---|---|
.. | ||
example.js | 2 years ago | |
index.js | 2 years ago | |
license.md | 2 years ago | |
package.json | 2 years ago | |
readme.md | 2 years ago |
Yet another function to replace HTML <br>
tags with newline characters.
Note: This package does not do HTML sanitization! It merely replaces <br>
.
npm install @derhuerst/br2nl
const br2nl = require('@derhuerst/br2nl')
console.log(br2nl('foo<br>bar'))
console.log(br2nl('foo<br> bar'))
console.log(br2nl('foo<br/>bar'))
console.log(br2nl('foo<br />bar'))
console.log(br2nl('foo<br a="b" />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.