From 7f0c3e1e1a55ed1f627f5e421032e1f46cb450f9 Mon Sep 17 00:00:00 2001 From: Antonio Laguna Date: Mon, 18 Nov 2024 17:42:33 +0100 Subject: [PATCH] fix: use normal import --- packages/core/src/dom/wpKsesPost.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/core/src/dom/wpKsesPost.ts b/packages/core/src/dom/wpKsesPost.ts index e56a7bda4..87f5dd5fa 100644 --- a/packages/core/src/dom/wpKsesPost.ts +++ b/packages/core/src/dom/wpKsesPost.ts @@ -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;