[go: nahoru, domu]

Skip to content

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

License

Notifications You must be signed in to change notification settings

derhuerst/br2nl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages