forked from mirrors/akkoma-fe
fix hrefs
This commit is contained in:
parent
ecefbac4ec
commit
aecc59cdc8
1 changed files with 6 additions and 0 deletions
|
@ -171,6 +171,12 @@ export default Vue.component('RichContent', {
|
||||||
return renderMention(attrs, children)
|
return renderMention(attrs, children)
|
||||||
} else {
|
} else {
|
||||||
currentMentions = null
|
currentMentions = null
|
||||||
|
if (attrs['href']) {
|
||||||
|
attrs['href'] = attrs['href'].replace(/&/g, '&')
|
||||||
|
return <a {...{ attrs }}>
|
||||||
|
{ children }
|
||||||
|
</a>
|
||||||
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
case 'span':
|
case 'span':
|
||||||
|
|
Loading…
Reference in a new issue