0.0.5 • Published 8 years ago

ng2-sanitize v0.0.5

Weekly downloads
7
License
MIT
Repository
github
Last release
8 years ago

ng2-ace

npm version Sanitize html integration with typescript for angular 2.

Install

npm i -s ng2-sanitize

Sample Usage

import { SanitizeHtml, SanitizeResourceUrl, SanitizeScript, SanitizeStyle, SanitizeUrl } from 'ng2-sanitize';

@Component({
  directives: [SanitizeHtml],
  template: `
  <div [innerHTML]="html | sanitizeHtml"></div>
  `
})
export class MyComponent {
    text:html = "<b>Welcome</b>";
}