Sanitizer

class

Sanitizer is used by the views to sanitize potentially dangerous values.

abstract class Sanitizer {
  abstract sanitize(context: SecurityContext, value: {...}): string | null
}

Subclasses

Methods

abstract sanitize(context: SecurityContext, value: { } | string | null): string | null

Parameters

context

Type: SecurityContext.

value

Type: { } | string | null.

Returns

string | null

© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/core/Sanitizer