Skip to content

Commit

Permalink
Fix code scanning alert no. 8: DOM text reinterpreted as HTML (#1546)
Browse files Browse the repository at this point in the history
Signed-off-by: Priyankar Pal  <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
1 parent b302a00 commit 773ab0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plays/sticky-notes/components/Note.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Note = ({ note, handleDelete, handleEdit }) => {
<p className="text-white capitalize text-lg pt-2">{note.body}</p>
<a
className="pt-5 mt-auto block text-blue-900"
href={`https://twitter.com/intent/tweet?text="${note.body}`}
href={`https://twitter.com/intent/tweet?text="${encodeURIComponent(note.body)}`}
rel="noreferrer"
target="_blank"
>
Expand Down

0 comments on commit 773ab0e

Please sign in to comment.