diff --git a/src/components/middle/composer/TextFormatter.tsx b/src/components/middle/composer/TextFormatter.tsx index 114ac10f..e2b8132c 100644 --- a/src/components/middle/composer/TextFormatter.tsx +++ b/src/components/middle/composer/TextFormatter.tsx @@ -268,7 +268,7 @@ const TextFormatter: FC = ({ ]); function handleLinkUrlConfirm() { - const formattedLinkUrl = linkUrl.includes('://') ? linkUrl : `http://${linkUrl}`; + const formattedLinkUrl = encodeURI(linkUrl.includes('://') ? linkUrl : `http://${linkUrl}`); if (isEditingLink) { const element = getSelectedElement();