We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 942fa9e commit 20ae3a4Copy full SHA for 20ae3a4
web/src/utils/markdownSanitization.ts
@@ -47,6 +47,7 @@ export const sanitizeMarkdown = (markdown: string): string => {
47
// Optional: Remove encoded protocols/entities as before
48
sanitized = sanitized.replace(/javascript:/gi, "");
49
sanitized = sanitized.replace(/vbscript:/gi, "");
50
+ sanitized = sanitized.replace(/data:/gi, "");
51
sanitized = sanitized.replace(/&#x[0-9a-f]+;/gi, "");
52
sanitized = sanitized.replace(/&#[0-9]+;/gi, "");
53
0 commit comments