fix links with html entities

This commit is contained in:
j 2023-11-17 11:36:15 +01:00
parent ee11e6b7e1
commit a537963b9f
3 changed files with 5 additions and 3 deletions

View File

@ -723,7 +723,7 @@ pandora.ui.infoView = function(data, isMixed) {
return key
? '<a href="/' + (
key == 'alternativeTitles' ? 'title' : key
) + '=' + pandora.escapeQueryValue(linkValue[idx]) + '">' + value + '</a>'
) + '=' + pandora.escapeQueryValue(Ox.decodeHTMLEntities(linkValue[idx])) + '">' + value + '</a>'
: value;
}).join(Ox.contains(specialListKeys, key) ? '; ' : ', ');
}

View File

@ -461,7 +461,7 @@ pandora.ui.infoView = function(data, isMixed) {
return key
? '<a href="/' + (
key == 'alternativeTitles' ? 'title' : key
) + '=' + pandora.escapeQueryValue(linkValue[idx]) + '">' + value + '</a>'
) + '=' + pandora.escapeQueryValue(Ox.decodeHTMLEntities(linkValue[idx])) + '">' + value + '</a>'
: value;
}).join(Ox.contains(specialListKeys, key) ? '; ' : ', ');
}

View File

@ -635,7 +635,9 @@ pandora.ui.infoView = function(data, isMixed) {
function formatLink(key, value, linkValue) {
return (Ox.isArray(value) ? value : [value]).map(function(value) {
return key
? '<a href="/' + key + '=' + pandora.escapeQueryValue(linkValue ? linkValue : value) + '">' + value + '</a>'
? '<a href="/' + key + '=' + pandora.escapeQueryValue(
Ox.decodeHTMLEntities(linkValue ? linkValue : value)
) + '">' + value + '</a>'
: value;
}).join(', ');
}