We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a854250 commit c7203d7Copy full SHA for c7203d7
web/src/pages/chat/markdown-content/index.tsx
@@ -50,7 +50,7 @@ const MarkdownContent = ({
50
const { setDocumentIds, data: fileThumbnails } =
51
useFetchDocumentThumbnailsByIds();
52
const contentWithCursor = useMemo(() => {
53
- let text = content;
+ let text = DOMPurify.sanitize(content);
54
if (text === '') {
55
text = t('chat.searching');
56
}
0 commit comments