Sanitize html integration with typescript for angular 2.
npm i -s ng2-sanitize
import { SanitizeHtml, SanitizeResourceUrl, SanitizeScript, SanitizeStyle, SanitizeUrl } from 'ng2-sanitize';
@Component({
template: `
<div [innerHTML]="html | sanitizeHtml"></div>
`
})
export class MyComponent {
text:html = "<b>Welcome</b>";
}