ng2-sanitize
v0.0.5
Published
Sanitize html with typescript for angular 2.
Downloads
86
Maintainers
Readme
ng2-ace
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>";
}