diff --git a/packages/platform-browser/test/security/html_sanitizer_spec.ts b/packages/platform-browser/test/security/html_sanitizer_spec.ts index 51afd6d159..a46e139b6f 100644 --- a/packages/platform-browser/test/security/html_sanitizer_spec.ts +++ b/packages/platform-browser/test/security/html_sanitizer_spec.ts @@ -136,8 +136,9 @@ export function main() { if (browserDetection.isWebkit) { it('should prevent mXSS attacks', function() { + // In Chrome Canary 62, the ideographic space character is kept as a stringified HTML entity expect(sanitizeHtml(defaultDoc, 'CLICKME')) - .toEqual('CLICKME'); + .toMatch(/CLICKME<\/a>/); }); } });