Skip to content

Commit

Permalink
fix: use normal import
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio-Laguna committed Nov 18, 2024
1 parent d141852 commit 7f0c3e1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/core/src/dom/wpKsesPost.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/* eslint-disable no-param-reassign, @typescript-eslint/no-use-before-define */
import * as xss from 'xss';
import sanitize from 'xss';
import type { IWhiteList, IFilterXSSOptions } from 'xss';
import { isHrefValueClean, linkingSVGElements, svgAllowList, svgHtmlAllowList } from './svg';

const { default: sanitize } = xss;
import { isHrefValueClean, linkingSVGElements, svgAllowList, svgHtmlAllowList } from './svg';

interface IWpKsesPostOptions extends IFilterXSSOptions {
svg?: boolean;
Expand Down

0 comments on commit 7f0c3e1

Please sign in to comment.