/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {Component} from '@angular/core'; import {TestBed} from '@angular/core/testing'; describe('comment node text escaping', () => { // see: https://html.spec.whatwg.org/multipage/syntax.html#comments ['>', // self closing '-->', // standard closing '--!>', // alternate closing '', // embedded comment. ].forEach((xssValue) => { it('should not be possible to do XSS through comment reflect data when writing: ' + xssValue, () => { @Component({template: `