Skip to content

Commit

Permalink
Merge pull request #2646 from phenax/patch-1
Browse files Browse the repository at this point in the history
fix(extension-link): prevent parsing `javascript:` pseudo-protocol
  • Loading branch information
bdbch committed Apr 12, 2022
2 parents 10855a4 + 947f311 commit 4108e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/extension-link/src/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const Link = Mark.create<LinkOptions>({

parseHTML() {
return [
{ tag: 'a[href]' },
{ tag: 'a[href]:not([href *= "javascript:" i])' },
]
},

Expand Down

0 comments on commit 4108e9f

Please sign in to comment.