diff --git a/plugins/show-linked-portals.user.js b/plugins/show-linked-portals.user.js index a42003d0..e380557c 100644 --- a/plugins/show-linked-portals.user.js +++ b/plugins/show-linked-portals.user.js @@ -71,9 +71,18 @@ window.plugin.showLinkedPortal.getPortalByGuid = function (guid) { var portalDetails = window.portals[guid].options.details; portalInfoString = ''; var portalNameAdressAlt = "'" + portalDetails.portalV2.descriptiveText.TITLE + "' (" + portalDetails.portalV2.descriptiveText.ADDRESS + ")"; - var portalNameAdressTitle = "'" + portalDetails.portalV2.descriptiveText.TITLE + "'
(" + portalDetails.portalV2.descriptiveText.ADDRESS + ")"; + var portalNameAdressTitle = $('
').append('\'') + .append($('').text(portalDetails.portalV2.descriptiveText.TITLE)) + .append('\'') + .append($('
')) + .append($('').text('(' + portalDetails.portalV2.descriptiveText.ADDRESS + ')')) + .html(); var imageUrl = (portalDetails.imageByUrl ? portalDetails.imageByUrl.imageUrl : window.DEFAULT_PORTAL_IMG); - portalInfoString = '' + portalNameAdressAlt + ''; + portalInfoString = $('
').html($('').attr('src', imageUrl) + .attr('class', 'minImg') + .attr('alt', portalNameAdressAlt) + .attr('title', portalNameAdressTitle)) + .html(); } return portalInfoString; };