Skip to content

Commit

Permalink
feat: add TUI_EDITOR_SANITIZER
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Jun 26, 2024
1 parent 472372a commit 5e34909
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions projects/editor/src/tokens/editor-sanitizer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {NgDompurifySanitizer} from '@taiga-ui/dompurify';
import {tuiCreateTokenFromFactory} from '@taiga-ui/cdk';
import {Sanitizer} from '@angular/core';

export const TUI_EDITOR_SANITIZER = tuiCreateTokenFromFactory<Sanitizer>(
() => new NgDompurifySanitizer(),
);

0 comments on commit 5e34909

Please sign in to comment.