Skip to content

Commit

Permalink
fix(plugin-edusharing): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsTheGlidingSquirrel committed Dec 23, 2024
1 parent 440e245 commit 05b54fa
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
Expand Up @@ -87,15 +87,15 @@ export function EdusharingAssetRenderer(props: {

const html = buildHtml(htmlSnippet, defineContainerHeight)

const sanatizedHtml = DOMPurify.sanitize(html, {
const sanitizedHtml = DOMPurify.sanitize(html, {
// We allow <script> and <iframe> elements. Those are part of the html snippet we get from edu-sharing and cannot be removed or the embed will break. <script> elements cannot be manipulated by the user and we can trust them.
ADD_TAGS: ['script', 'iframe'],
// Return entire html document including <html>, <body>, ...
WHOLE_DOCUMENT: true,
})

setEmbedType(embedType)
setEmbedHtml(sanatizedHtml)
setEmbedHtml(sanitizedHtml)
setDefineContainerHeight(defineContainerHeight)
}

Expand Down

0 comments on commit 05b54fa

Please sign in to comment.