From 229a664eed9fbf4e33004d0e41c7ef19cfd13beb Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 25 Aug 2022 11:56:42 +0530 Subject: [PATCH] refactor(gui-v2): replace `getPlainText` with `getHTMLEncodedText` Signed-off-by: Pranav C --- packages/nc-gui-v2/composables/useExpandedFormStore.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(() => {}) }