Ngx stripper, an Angular pipe to clean up string from any languages construct
https://next.plnkr.co/plunk/DGbwiDGvvMz8LBcg
Install the library
$ npm install --save ngx-stripper
Import it in your Angular2 project like a module
-
Declare it in your module
import {NgxStripperModule} from "ngx-stripper"; @NgModule({ imports: [ NgxStripperModule ] })
-
Use it in your components
import {Component} from '@angular/core'; @Component({ selector: 'label', template: `<p>{{text | stripper:'html'}}<p>` }) export class LabelComponent {}
Want to contribute? Great! Simply, clone the repository!
MIT
Lorenzo I.