Skip to content

Commit

Permalink
URL sanitization ClickableLinkPlugin (facebook#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

0 comments on commit 2730895

Please sign in to comment.