message: refactor: add externalLink helper
diff: @@ -203,6 +203,15 @@ export function decodeHEX (text: string): string {
  )
  }
  +/**
  + * Will jump to the website instead of searching
  + * when clicking on the dict panel
  + */
  +export function externalLink ($a: HTMLElement) {
  + $a.setAttribute('target', '_blank')
  + $a.setAttribute('rel', 'nofollow noopener noreferrer')
  +}
  +
  export function getFullLinkBuilder (host: string) {
  if (host.endsWith('/')) {
  host = host.slice(0, -1)
  