Refactor linkDetails a bit
Refactor linkDetails a bit

Avoid excessive stringification and do the things in more straightforward way

Note: window.escapeHtmlSpecialChars is not used in core anymore

sndirsch/ingress-intel-total-conversion,sndirsch/ingress-intel-total-conversion,sndirsch/ingress-intel-total-conversion,sndirsch/ingress-intel-total-conversion,McBen/ingress-intel-total-conversion,McBen/ingress-intel-total-conversion,McBen/ingress-intel-total-conversion,sndirsch/ingress-intel-total-conversion,McBen/ingress-intel-total-conversion,McBen/ingress-intel-total-conversion