mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 15:45:58 +08:00
### What problem does this PR solve? Fix: Use DOMPurify to filter out dangerous HTML #7668 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
008e55a65e
commit
d373c46976
@ -50,7 +50,7 @@ const MarkdownContent = ({
|
||||
const { setDocumentIds, data: fileThumbnails } =
|
||||
useFetchDocumentThumbnailsByIds();
|
||||
const contentWithCursor = useMemo(() => {
|
||||
let text = content;
|
||||
let text = DOMPurify.sanitize(content);
|
||||
if (text === '') {
|
||||
text = t('chat.searching');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user