Created
August 30, 2019 19:52
-
-
Save waterplea/007243ad2191ca76ecbc0c733a1e5199 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class Sanitizer { | |
abstract sanitize(context: SecurityContext, value: string | {}): string | null | |
} | |
abstract class DomSanitizer implements Sanitizer { | |
abstract sanitize(context: SecurityContext, value: string | SafeValue): string | null | |
abstract bypassSecurityTrustHtml(value: string): SafeHtml | |
abstract bypassSecurityTrustStyle(value: string): SafeStyle | |
abstract bypassSecurityTrustScript(value: string): SafeScript | |
abstract bypassSecurityTrustUrl(value: string): SafeUrl | |
abstract bypassSecurityTrustResourceUrl(value: string): SafeResourceUrl | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment