diff --git a/src/controllers/itemDetails/index.js b/src/controllers/itemDetails/index.js
index 762d4ce83e..9e90345841 100644
--- a/src/controllers/itemDetails/index.js
+++ b/src/controllers/itemDetails/index.js
@@ -666,10 +666,12 @@ function reloadFromItem(instance, page, params, item, user) {
if (item.Type == 'Person' && item.ProductionLocations && item.ProductionLocations.length) {
let location = item.ProductionLocations[0];
if (!layoutManager.tv && appHost.supports('externallinks')) {
- location = `${location}`;
+ location = `${escapeHtml(location)}`;
+ } else {
+ location = escapeHtml(location);
}
itemBirthLocation.classList.remove('hide');
- itemBirthLocation.innerText = globalize.translate('BirthPlaceValue', location);
+ itemBirthLocation.innerHTML = globalize.translate('BirthPlaceValue', location);
} else {
itemBirthLocation.classList.add('hide');
}
@@ -745,7 +747,7 @@ function renderLinks(page, item) {
if (item.ExternalUrls) {
for (const url of item.ExternalUrls) {
- links.push(`${url.Name}`);
+ links.push(`${escapeHtml(url.Name)}`);
}
}