forked from 0x2620/pandora
fix links with html entities
This commit is contained in:
parent
ee11e6b7e1
commit
a537963b9f
3 changed files with 5 additions and 3 deletions
|
@ -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) ? '; ' : ', ');
|
||||
}
|
||||
|
|
|
@ -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) ? '; ' : ', ');
|
||||
}
|
||||
|
|
|
@ -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(', ');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue