diff --git a/tools/server/webui/src/lib/components/app/chat/ChatAttachments/ChatAttachmentPreview.svelte b/tools/server/webui/src/lib/components/app/chat/ChatAttachments/ChatAttachmentPreview.svelte
index b5fe3fa9c4..0b0bf52ad9 100644
--- a/tools/server/webui/src/lib/components/app/chat/ChatAttachments/ChatAttachmentPreview.svelte
+++ b/tools/server/webui/src/lib/components/app/chat/ChatAttachments/ChatAttachmentPreview.svelte
@@ -241,7 +241,7 @@
{/if}
{:else if (isText || (isPdf && pdfViewMode === 'text')) && displayTextContent}
-
+ {@html highlightedHtml}