We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dc10a8 commit 9929e0cCopy full SHA for 9929e0c
1 file changed
app/components/MarkdownText.vue
@@ -40,7 +40,7 @@ function parseMarkdown(text: string): string {
40
try {
41
const parsed = new URL(decodedUrl)
42
if (['https:', 'mailto:'].includes(parsed.protocol)) {
43
- const safeUrl = decodedUrl.replace(/"/g, '"')
+ const safeUrl = parsed.toString().replace(/"/g, '"')
44
return `<a href="${safeUrl}" rel="nofollow noreferrer noopener" target="_blank">${text}</a>`
45
}
46
} catch {}
0 commit comments