diff --git a/packages/editor-ui/src/composables/useMessage.ts b/packages/editor-ui/src/composables/useMessage.ts index 22bb50fc698c4..9f5e2742ac75a 100644 --- a/packages/editor-ui/src/composables/useMessage.ts +++ b/packages/editor-ui/src/composables/useMessage.ts @@ -26,6 +26,7 @@ export function useMessage() { ...(config ?? (typeof configOrTitle === 'object' ? configOrTitle : {})), cancelButtonClass: 'btn--cancel', confirmButtonClass: 'btn--confirm', + dangerouslyUseHTMLString: true, }; if (typeof configOrTitle === 'string') { @@ -49,6 +50,7 @@ export function useMessage() { distinguishCancelAndClose: true, showClose: config?.showClose ?? false, closeOnClickModal: false, + dangerouslyUseHTMLString: true, ...(config ?? (typeof configOrTitle === 'object' ? configOrTitle : {})), }; @@ -74,6 +76,7 @@ export function useMessage() { ...(config ?? (typeof configOrTitle === 'object' ? configOrTitle : {})), cancelButtonClass: 'btn--cancel', confirmButtonClass: 'btn--confirm', + dangerouslyUseHTMLString: true, }; if (typeof configOrTitle === 'string') {