Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Philipp Partosch 46a936d7de added all files to project 2 years ago
..
example.js added all files to project 2 years ago
index.js added all files to project 2 years ago
license.md added all files to project 2 years ago
package.json added all files to project 2 years ago
readme.md added all files to project 2 years ago

readme.md

br2nl

Yet another function to replace HTML <br> tags with newline characters.

Note: This package does not do HTML sanitization! It merely replaces <br>.

npm version build status ISC-licensed chat with me on Gitter support me on Patreon

Installation

npm install @derhuerst/br2nl

Usage

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'))

Contributing

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.