diff --git a/src/components/Map1.tsx b/src/components/Map1.tsx index 5e1507e78710fca4d85e6e4224a7dc97297d0dd3..2a734ddc2b4c607258318ea7f8ead2eafa7d6649 100644 --- a/src/components/Map1.tsx +++ b/src/components/Map1.tsx @@ -1,5 +1,4 @@ import InnerHTML from 'dangerously-set-html-content' -import DOMPurify from 'dompurify'; export function Map1(){ const htmlFile = `<div style="min-height: 374px"> <script type="text/javascript" defer src="src/utils/mapscript.js" charset="utf-8"> @@ -8,9 +7,8 @@ export function Map1(){ <img src="https://static.igem.wiki/teams/5247/charts-maps/map1-full.png" alt="" /> </noscript> </div>` -const sanitizedHTML = DOMPurify.sanitize(htmlFile); return( - <InnerHTML html={sanitizedHTML} /> + <InnerHTML html={htmlFile} /> ) }