This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

Sanitizer

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
      
      abstract sanitize(context: SecurityContext, value: {
} | string | null): string | null
    

Parameters

context

Type: SecurityContext.

value

Type: { } | string | null.

Returns

string | null