Skip to content

Commit

Permalink
[DAT-2254]clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Maereg Sorri committed Jul 13, 2023
1 parent cd5580c commit 60ea0bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/shared/services/sanitize.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import * as DOMPurify from 'dompurify';

export default function sanitize(content:string):string{
if (!content) return '';
return DOMPurify.sanitize(content, {ADD_TAGS: ["iframe"],ADD_ATTR: ['target']});
return DOMPurify.sanitize(content, {ADD_TAGS: ['iframe'],ADD_ATTR: ['target']});
}

0 comments on commit 60ea0bd

Please sign in to comment.