Skip to content

Commit d010a30

Browse files
Potential fix for code scanning alert no. 9: DOM text reinterpreted as HTML
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 24009bb commit d010a30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/chat/chat-message.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface ChatMessageProps {
1515
}
1616

1717
const md = new MarkdownIt({
18-
html: true,
18+
html: false, // Disables raw HTML in source markdown for XSS protection
1919
linkify: true,
2020
typographer: true,
2121
breaks: true,

0 commit comments

Comments
 (0)