* Security Edits Combined * Security copy edits * Fix typo in security * fixing trailing whitespace
14 lines
399 B
TypeScript
14 lines
399 B
TypeScript
// #docregion
|
|
import { Component } from '@angular/core';
|
|
|
|
@Component({
|
|
moduleId: module.id,
|
|
selector: 'inner-html-binding',
|
|
templateUrl: 'inner-html-binding.component.html',
|
|
})
|
|
// #docregion inner-html-controller
|
|
export class InnerHtmlBindingComponent {
|
|
// For example, a user/attacker-controlled value from a URL.
|
|
htmlSnippet = 'Template <script>alert("0wned")</script> <b>Syntax</b>';
|
|
}
|