Skip to content

[unmaintained] AngularJS (1.x) filter that converts newlines to `<br>`-tags.

License

Notifications You must be signed in to change notification settings

sdvg/angular-nl2br-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-nl2br-filter Build Status

Angular 1.x filter that converts newlines to <br>-tags.

Install

NPM:

$ npm install --save angular-nl2br-filter

Bower:

$ bower install --save angular-nl2br-filter 

Usage

  1. Add nl2br-filter as a dependency to your module: angular.module('app', ['nl2br-filter'])
  2. Use ng-bind-html and the nl2br filter to show a string with newlines: <p ng-bind-html="testString | nl2br"></p>

There's also a small demo for this: demo.html.

License

MIT © Stefan Dietz

About

[unmaintained] AngularJS (1.x) filter that converts newlines to `<br>`-tags.

Resources

License

Stars

Watchers

Forks

Packages

No packages published