Skip to content

Commit

Permalink
fix: use DOMPurify correct namespace for dts file (#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding authored Feb 4, 2023
1 parent 6f3daed commit 78357bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/src/services/domUtilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ export function sanitizeHtmlToText(htmlString: string): string {
* @param dirtyHtml: dirty html string
* @param domPurifyOptions: optional DOMPurify options when using that sanitizer
*/
export function sanitizeTextByAvailableSanitizer(gridOptions: GridOption, dirtyHtml: string, domPurifyOptions?: DOMPurify.Config): string {
export function sanitizeTextByAvailableSanitizer(gridOptions: GridOption, dirtyHtml: string, domPurifyOptions?: DOMPurify_.Config): string {
let sanitizedText = dirtyHtml;
if (typeof gridOptions?.sanitizer === 'function') {
sanitizedText = gridOptions.sanitizer(dirtyHtml || '');
Expand Down

0 comments on commit 78357bc

Please sign in to comment.