NetanelBasal
11/3/2016 - 2:42 PM

ds1.ts

@Component({
  selector: 'my-app',
  template: `
    <div [innerHtml]="html"></div>
  `,
})
export class App {
  constructor() {
    this.html = "<h1>DomSanitizer</h1><script>attackerCode()</script>"
  }
}