diff --git a/packages/nc-gui-v2/composables/useExpandedFormStore.ts b/packages/nc-gui-v2/composables/useExpandedFormStore.ts index 19d186593b..76437ef8e7 100644 --- a/packages/nc-gui-v2/composables/useExpandedFormStore.ts +++ b/packages/nc-gui-v2/composables/useExpandedFormStore.ts @@ -14,6 +14,7 @@ import { useProvideSmartsheetRowStore, } from '#imports' import type { Row } from '~/composables' +import { getHTMLEncodedText } from '~/utils' const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((meta: Ref, row: Ref) => { const { $e, $state, $api } = useNuxtApp() @@ -156,8 +157,8 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((m fk_model_id: meta.value.id, column_name: key, row_id: id, - value: getPlainText(updateOrInsertObj[key]), - prev_value: getPlainText(row.value.oldRow[key]), + value: getHTMLEncodedText(updateOrInsertObj[key]), + prev_value: getHTMLEncodedText(row.value.oldRow[key]), }) .then(() => {}) }