Skip to content

Commit

Permalink
Merge pull request #4214 from serlo/fix-edusharing-import
Browse files Browse the repository at this point in the history
fix(edusharing-plugin): use correct import
  • Loading branch information
LarsTheGlidingSquirrel authored Oct 23, 2024
2 parents da6adc2 + 4082800 commit 74ec588
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/editor/src/plugins/edusharing-asset/renderer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import EdusharingIcon from '@editor/editor-ui/assets/edusharing.svg'
import { sanitize } from 'dompurify'
import DOMPurify from 'dompurify'
import IframeResizer from 'iframe-resizer-react'
import * as t from 'io-ts'
import { memo, useEffect, useState } from 'react'
Expand Down Expand Up @@ -81,7 +81,7 @@ export function EdusharingAssetRenderer(props: {
getEmbedHtml(responseJson)

// Prevent common XSS methods
const sanitizedHtml = sanitize(html)
const sanitizedHtml = DOMPurify.sanitize(html)

setEmbedType(embedType)
setEmbedHtml(sanitizedHtml)
Expand Down

0 comments on commit 74ec588

Please sign in to comment.