@taiga-ui/dompurify
Version:
Inclusive Angular API for DOMPurify
17 lines (16 loc) • 805 B
TypeScript
import type { PipeTransform } from '@angular/core';
import { SecurityContext } from '@angular/core';
import type { SafeValue } from '@angular/platform-browser';
import type { NgDompurifyConfig } from './types/ng-dompurify-config';
import * as i0 from "@angular/core";
/**
* Pipe that transforms dirty content to clean via {@link NgDompurifySanitizer}
*/
export declare class NgDompurifyPipe implements PipeTransform {
private readonly sanitizer;
private readonly domSanitizer;
transform(value: Record<string, string> | string | null, context?: SecurityContext, config?: NgDompurifyConfig): SafeValue | null;
private bypassSecurityTrust;
static ɵfac: i0.ɵɵFactoryDeclaration<NgDompurifyPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<NgDompurifyPipe, "dompurify", true>;
}