diff --git a/README.md b/README.md index e2692c6..addc0fe 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Ngx stripper, an Angular pipe to clean up string from any languages construct ### Demo -UNAVAILABLE +https://next.plnkr.co/plunk/DGbwiDGvvMz8LBcg ### Installation diff --git a/example/dev/src/app/app.component.html b/example/dev/src/app/app.component.html index e3d0687..3fafd61 100644 --- a/example/dev/src/app/app.component.html +++ b/example/dev/src/app/app.component.html @@ -1 +1,5 @@ +

Original html

+

{{text}}

+ +

Stripped html

{{text | stripper:'html'}}

diff --git a/example/dev/src/app/app.component.ts b/example/dev/src/app/app.component.ts index 7cb0d82..922bc4f 100644 --- a/example/dev/src/app/app.component.ts +++ b/example/dev/src/app/app.component.ts @@ -6,5 +6,5 @@ import { Component } from '@angular/core'; styleUrls: ['./app.component.css'] }) export class AppComponent { - text = '

CIAOOOO

'; + text = `

example text very cool!

Wow


`; } diff --git a/src/ngx-stripper.module.ts b/src/ngx-stripper.module.ts index ef0766b..711d567 100644 --- a/src/ngx-stripper.module.ts +++ b/src/ngx-stripper.module.ts @@ -1,6 +1,6 @@ import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; -import {NgxStripperPipe} from './directives/ngx-stripper.pipe'; +import {NgxStripperPipe} from './pipes/ngx-stripper.pipe'; @NgModule({ declarations: [ diff --git a/src/directives/ngx-stripper.pipe.ts b/src/pipes/ngx-stripper.pipe.ts similarity index 100% rename from src/directives/ngx-stripper.pipe.ts rename to src/pipes/ngx-stripper.pipe.ts