1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-04-19 12:57:29 +02:00
Daniel Waxweiler 1d7fe7a0a3 first commit
2021-01-08 14:08:40 +01:00

8 lines
194 B
JavaScript

export function createAnchorElement({ text, url }) {
const a = document.createElement('a')
a.setAttribute('href', url)
a.setAttribute('target', '_blank')
a.innerHTML = text
return a
}