Skip to content

fxmontigny/ng2-sanitize

Repository files navigation

ng2-sanitize

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({
  template: `
  <div [innerHTML]="html | sanitizeHtml"></div>
  `
})
export class MyComponent {
    text:html = "<b>Welcome</b>";
}

Used by

caravel.design

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published