1.1.10 • Published 8 years ago

decode-html-entities v1.1.10

Weekly downloads
154
License
-
Repository
bitbucket
Last release
8 years ago

decode-html-entities

decode-html-entities converts special characters like & into &.

Install in your project

npm install decode-html-entities --save

Example

input: '1 & 2' output: '1 & 2'

How to use?

import module
@NgModule({
    declarations:[DecodeHtmlEntitiesModule],    
    exports:[DecodeHtmlEntitiesModule]    
})
 <p>{{ text | decodeHtmlEntities }}</p>

How?

transform(value: any, args: any[]): any {
        if (!value) return;
        let txt = document.createElement("textarea");
        txt.innerHTML = value;
        return txt.value;
    }

License

MIT Free Software, Yeah!

1.1.10

8 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago