Ngx stripper, an Angular pipe to clean up string from any languages construct
Find a file
2019-05-09 11:59:05 +02:00
e2e Feat: created pipe only for strip html; Feat: created example project; 2019-05-08 11:21:51 +02:00
example/dev Feat: added plunker url; Feat: update example 2019-05-08 11:37:13 +02:00
src Feat: added plunker url; Feat: update example 2019-05-08 11:37:13 +02:00
.editorconfig Feat: created pipe only for strip html; Feat: created example project; 2019-05-08 11:21:51 +02:00
.gitignore Feat: created pipe only for strip html; Feat: created example project; 2019-05-08 11:21:51 +02:00
index.ts Feat: created pipe only for strip html; Feat: created example project; 2019-05-08 11:21:51 +02:00
LICENSE Create LICENSE 2019-05-09 11:59:05 +02:00
package-lock.json Feat: created pipe only for strip html; Feat: created example project; 2019-05-08 11:21:51 +02:00
package.json Version upgrade @0.0.3 2019-05-09 11:49:37 +02:00
publishPackage.json Version upgrade @0.0.3 2019-05-09 11:49:37 +02:00
README.md Fix: license typo in README.md; Fix: typo in README.md example 2019-05-09 11:46:38 +02:00
tsconfig.json Feat: created pipe only for strip html; Feat: created example project; 2019-05-08 11:21:51 +02:00
tslint.json Feat: created pipe only for strip html; Feat: created example project; 2019-05-08 11:21:51 +02:00

ngx-stripper

Ngx stripper, an Angular pipe to clean up string from any languages construct

Demo

https://next.plnkr.co/plunk/DGbwiDGvvMz8LBcg

Installation

Install the library

$ npm install --save ngx-stripper

Usage

Import it in your Angular2 project like a module

  1. Declare it in your module

    import {NgxStripperModule} from "ngx-stripper";
    @NgModule({
      imports: [
        NgxStripperModule
      ]
    })
    
    
  2. Use it in your components

    import {Component} from '@angular/core';
    
    @Component({
      selector: 'label',
      template: `<p>{{text | stripper:'html'}}<p>`
    })
    
    export class LabelComponent {}
    

Development

Want to contribute? Great! Simply, clone the repository!

License

MIT

Lorenzo I.