1.0.3 • Published 10 years ago
angular-nl2br-filter v1.0.3
angular-nl2br-filter 
Angular 1.x filter that converts newlines to
<br>-tags.
Install
NPM:
$ npm install --save angular-nl2br-filterBower:
$ bower install --save angular-nl2br-filter Usage
- Add
nl2br-filteras a dependency to your module:angular.module('app', ['nl2br-filter']) - Use
ng-bind-htmland thenl2brfilter 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