diff --git a/src/components/Map1.tsx b/src/components/Map1.tsx index a85ffc2393bd459b9842b9e403ad229e73191ed3..5e1507e78710fca4d85e6e4224a7dc97297d0dd3 100644 --- a/src/components/Map1.tsx +++ b/src/components/Map1.tsx @@ -8,9 +8,9 @@ export function Map1(){ <img src="https://static.igem.wiki/teams/5247/charts-maps/map1-full.png" alt="" /> </noscript> </div>` -const sanitizedHTML = DOMPurify·sanitize(htmlContent); +const sanitizedHTML = DOMPurify.sanitize(htmlFile); return( - <InnerHTML html={htmlFile} /> + <InnerHTML html={sanitizedHTML} /> ) }