Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: rich text serialize error Handling

Ramesh Mane4de5a7c3e8be
diff --git a/packages/nc-gui/helpers/tiptap-markdown/util/dom.ts b/packages/nc-gui/helpers/tiptap-markdown/util/dom.ts
index 6c786a5ac6..6049fec6de 100644
--- a/packages/nc-gui/helpers/tiptap-markdown/util/dom.ts
+++ b/packages/nc-gui/helpers/tiptap-markdown/util/dom.ts
@@ -6,6 +6,8 @@ export function elementFromString(value) {
}
export function escapeHTML(value) {
+ if (!ncIsString(value)) return value
+
return value?.replace(/</g, '&lt;').replace(/>/g, '&gt;')
}