diff --git a/src/controllers/dashboard/apikeys.js b/src/controllers/dashboard/apikeys.js index c36aac650f..8811dc5742 100644 --- a/src/controllers/dashboard/apikeys.js +++ b/src/controllers/dashboard/apikeys.js @@ -1,3 +1,5 @@ +import escapeHTML from 'escape-html'; + import datetime from '../../scripts/datetime'; import loading from '../../components/loading/loading'; import dom from '../../scripts/dom'; @@ -23,13 +25,13 @@ function renderKeys(page, keys) { let html = ''; html += ''; html += ''; - html += ''; + html += ''; html += ''; html += ''; - html += item.AccessToken; + html += escapeHTML(item.AccessToken); html += ''; html += ''; - html += item.AppName || ''; + html += escapeHTML(item.AppName) || ''; html += ''; html += ''; const date = datetime.parseISO8601Date(item.DateCreated, true);