docs(aio): update migrated content from anguar.io
This commit is contained in:

committed by
Pete Bacon Darwin

parent
ff82756415
commit
fd72fad8fd
@ -0,0 +1,12 @@
|
||||
// #docregion
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'inner-html-binding',
|
||||
templateUrl: './inner-html-binding.component.html',
|
||||
})
|
||||
// #docregion class
|
||||
export class InnerHtmlBindingComponent {
|
||||
// For example, a user/attacker-controlled value from a URL.
|
||||
htmlSnippet = 'Template <script>alert("0wned")</script> <b>Syntax</b>';
|
||||
}
|
Reference in New Issue
Block a user