diff --git a/WebfrontCore/wwwroot/js/console.js b/WebfrontCore/wwwroot/js/console.js
index 90e6a84fa..65cea1f82 100644
--- a/WebfrontCore/wwwroot/js/console.js
+++ b/WebfrontCore/wwwroot/js/console.js
@@ -13,7 +13,7 @@
hideLoader();
response.map(r => r.response).forEach(item => {
- $('#console_command_response').append(`
${item}
`);
+ $('#console_command_response').append(`${escapeHtml(item)}
`);
})
$('#console_command_response').append('
')
@@ -26,7 +26,7 @@
if (response.status < 500) {
response.responseJSON.map(r => r.response).forEach(item => {
- $('#console_command_response').append(`${item}
`);
+ $('#console_command_response').append(`${escapeHtml(item)}
`);
})
} else {
$('#console_command_response').append(`Could not execute command...
`);