Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(cmt, index) => (
<div key={index} dangerouslySetInnerHTML={{ __html: sanitizeHTML(cmt.comment) }} />
<div key={index}>{sanitizeHTML(cmt.comment)}</div>

Check failure on line 2 in cloned_repos/orbit-app/orbit-app/src/components/CommentsSection.jsx

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

cloned_repos/orbit-app/orbit-app/src/components/CommentsSection.jsx#L2

'React' must be in scope when using JSX
)

// Ensure to implement a 'sanitizeHTML' function that properly sanitizes the input to prevent XSS attacks.
Expand Down