Skip to content

Commit

Permalink
fix: make sure html is sanitized
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan-LukeKlopper committed Jun 6, 2024
1 parent 20d3ddd commit 9996aab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ProposalDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function ProposalDetails(props) {

const htmlDescription = micromark(fixDescription, { extensions: [gfm()], htmlExtensions: [gfmHtml()] })
const sanitizedHtml = DOMPurify.sanitize(htmlDescription);
const transformedDescription = transformHTMLString(htmlDescription, proposal.isSpam);
const transformedDescription = transformHTMLString(sanitizedHtml, proposal.isSpam);

useEffect(() => {
if(props.address !== props.wallet?.address && props.granters.includes(props.address)){
Expand Down

0 comments on commit 9996aab

Please sign in to comment.