1
|
/**
|
2
|
* @license
|
3
|
* Copyright Google Inc. All Rights Reserved.
|
4
|
*
|
5
|
* Use of this source code is governed by an MIT-style license that can be
|
6
|
* found in the LICENSE file at https://angular.io/license
|
7
|
*/
|
8
|
/**
|
9
|
* A SecurityContext marks a location that has dangerous security implications, e.g. a DOM property
|
10
|
* like `innerHTML` that could cause Cross Site Scripting (XSS) security bugs when improperly
|
11
|
* handled.
|
12
|
*
|
13
|
* See DomSanitizer for more details on security in Angular applications.
|
14
|
*
|
15
|
* @stable
|
16
|
*/
|
17
|
export declare enum SecurityContext {
|
18
|
NONE = 0,
|
19
|
HTML = 1,
|
20
|
STYLE = 2,
|
21
|
SCRIPT = 3,
|
22
|
URL = 4,
|
23
|
RESOURCE_URL = 5,
|
24
|
}
|
25
|
/**
|
26
|
* Sanitizer is used by the views to sanitize potentially dangerous values.
|
27
|
*
|
28
|
* @stable
|
29
|
*/
|
30
|
export declare abstract class Sanitizer {
|
31
|
abstract sanitize(context: SecurityContext, value: {} | string | null): string | null;
|
32
|
}
|