angular.security library
API for customizing AngularDart's built-in security checks.
Import this library as follows:
import 'package:angular/security.dart';
For examples of using this API, see the Security page in the AngularDart guide.
Classes
- DomSanitizationService
- DomSanitizationService helps preventing Cross Site Scripting Security bugs (XSS) by sanitizing values to be safe to use in the different DOM contexts. [...]
- SafeHtml
- SafeInnerHtmlDirective
- Sets Element.innerHtml without sanitizing the HTML output. [...]
- SafeResourceUrl
- SafeStyle
- SafeUrl
- SafeValue
- SanitizationService
- SanitizationService is used by the views to sanitize values as create SafeValue equivalents that can be used to bind to in templates.
Enums
- TemplateSecurityContext
- A TemplateSecurityContext specifies a category of security vulnerabilities if the content is not sanitized. [...]