Skip to content

Commit

Permalink
URL sanitization ClickableLinkPlugin (#5302)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeion7 authored Nov 29, 2023
1 parent 4d2e310 commit 2730895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lexical-react/src/LexicalClickableLinkPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function LexicalClickableLinkPlugin({
$isElementNode,
);
if ($isLinkNode(maybeLinkNode)) {
url = maybeLinkNode.getURL();
url = maybeLinkNode.sanitizeUrl(maybeLinkNode.getURL());
urlTarget = maybeLinkNode.getTarget();
} else {
const a = findMatchingDOM(target, isHTMLAnchorElement);
Expand Down

2 comments on commit 2730895

@vercel
Copy link

@vercel vercel bot commented on 2730895 Nov 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical – ./packages/lexical-website

lexical.dev
lexical-fbopensource.vercel.app
lexicaljs.com
lexicaljs.org
lexical-git-main-fbopensource.vercel.app
www.lexical.dev

@vercel
Copy link

@vercel vercel bot commented on 2730895 Nov 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lexical-playground – ./packages/lexical-playground

lexical-playground.vercel.app
playground.lexical.dev
lexical-playground-fbopensource.vercel.app
lexical-playground-git-main-fbopensource.vercel.app

Please sign in to comment.