Skip to content
Snippets Groups Projects
Commit a6960767 authored by Liliana Sanfilippo's avatar Liliana Sanfilippo
Browse files

tried sanitized HTML

parent 259e3cd6
No related branches found
No related tags found
No related merge requests found
......@@ -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} />
)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment