Finish merge
Some checks failed
Nicolium CI / Test and upload artifacts (22.x) (push) Has been cancelled
Nicolium CI / deploy (push) Has been cancelled
pl-api CI / Test for pl-api formatting (22.x) (push) Has been cancelled
pl-hooks CI / Test for a successful build (22.x) (push) Has been cancelled

This commit is contained in:
2026-03-07 15:37:19 +00:00
parent d6e718a853
commit 620925f665
3 changed files with 5 additions and 3 deletions

View File

@ -179,7 +179,7 @@ const PreviewCard: React.FC<IPreviewCard> = ({
}
}
const sanitized = sanitize(html, {
const sanitized = DOMPurify.sanitize(html, {
ADD_TAGS: ['iframe'],
ADD_ATTR: ['allowfullscreen', 'frameborder', 'allow', 'src', 'width', 'height'],
});

View File

@ -3,6 +3,7 @@ import debounce from 'lodash/debounce';
import React, { Suspense, useEffect, useState } from 'react';
import StickyBox from 'react-sticky-box';
import SnowContainer from '@/components/snow-container';
import { useFeatures } from '@/hooks/use-features';
import tailwindConfig from '../../../tailwind.config';
@ -97,6 +98,7 @@ const useWindowControlsOverlay = () => {
/** Layout container, to hold Sidebar, Main, and Aside. */
const Layout: LayoutComponent = ({ children, fullWidth }) => (
<div className='⁂-layout'>
<SnowContainer />
<div
className={clsx('⁂-layout__content', {
'⁂-layout__content--full-width': fullWidth,

View File

@ -1,4 +1,4 @@
import { sanitize } from 'isomorphic-dompurify';
import DOMPurify from 'dompurify';
import React, { useState } from 'react';
import { FormattedMessage } from 'react-intl';
@ -67,7 +67,7 @@ const About: React.FC<IAbout> = ({ slug }) => {
{pageHtml && (
<div
dangerouslySetInnerHTML={{
__html: sanitize(pageHtml, { USE_PROFILES: { html: true } }),
__html: DOMPurify.sanitize(pageHtml, { USE_PROFILES: { html: true } }),
}}
/>
)}