diff --git a/apps/web/src/common/components/editor/TextEditorViewer.vue b/apps/web/src/common/components/editor/TextEditorViewer.vue index c0259062b5..b0398c2205 100644 --- a/apps/web/src/common/components/editor/TextEditorViewer.vue +++ b/apps/web/src/common/components/editor/TextEditorViewer.vue @@ -22,10 +22,10 @@ const props = withDefaults(defineProps(), { }); loadMonospaceFonts(); -const { markdown } = useMarkdown(toRef(props, 'contents')); +const { sanitizedHtml } = useMarkdown({ value: toRef(props, 'contents') }); const refinedContents = computed(() => { if (props.contentType === 'markdown') { - return markdown.value; + return sanitizedHtml.value; } return setAttachmentsToContents(props.contents, props.attachments); });