Skip to content

Commit

Permalink
Introduce xss
Browse files Browse the repository at this point in the history
  • Loading branch information
sdimitrijevikj committed Sep 28, 2024
1 parent 7a747e0 commit ab62694
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ export default function Home() {
<h2>Comments</h2>
<ul>
{comments.map((comment, index) => (
<li key={`${index}-comment`}>{comment}</li>
))}
<li key={`${index}-comment`} dangerouslySetInnerHTML={{__html: comment}} /> ))}
</ul>
<div>
</div>
Expand Down

0 comments on commit ab62694

Please sign in to comment.