diff --git a/awx/ui/static/js/controllers/Inventories.js b/awx/ui/static/js/controllers/Inventories.js
index 9660c1ca71..688f1f1fd4 100644
--- a/awx/ui/static/js/controllers/Inventories.js
+++ b/awx/ui/static/js/controllers/Inventories.js
@@ -16,7 +16,7 @@
import 'tower/job-templates/main';
export function InventoriesList($scope, $rootScope, $location, $log,
- $routeParams, $compile, $filter, Rest, Alert, InventoryList, generateList,
+ $routeParams, $compile, $filter, sanitizeFilter, Rest, Alert, InventoryList, generateList,
LoadBreadCrumbs, Prompt, SearchInit, PaginateInit, ReturnToCaller,
ClearScope, ProcessErrors, GetBasePath, Wait, Stream,
EditInventoryProperties, Find, Empty, LogViewer) {
@@ -346,7 +346,7 @@ export function InventoriesList($scope, $rootScope, $location, $log,
Prompt({
hdr: 'Delete',
- body: '
Delete inventory ' + name + '?
',
+ body: 'Delete inventory ' + $filter('sanitize')(name) + '?
',
action: action
});
};
@@ -370,7 +370,7 @@ export function InventoriesList($scope, $rootScope, $location, $log,
};
}
-InventoriesList.$inject = ['$scope', '$rootScope', '$location', '$log', '$routeParams', '$compile', '$filter', 'Rest', 'Alert', 'InventoryList', 'generateList',
+InventoriesList.$inject = ['$scope', '$rootScope', '$location', '$log', '$routeParams', '$compile', '$filter', 'sanitizeFilter', 'Rest', 'Alert', 'InventoryList', 'generateList',
'LoadBreadCrumbs', 'Prompt', 'SearchInit', 'PaginateInit', 'ReturnToCaller', 'ClearScope', 'ProcessErrors',
'GetBasePath', 'Wait', 'Stream', 'EditInventoryProperties', 'Find', 'Empty', 'LogViewer'
];
diff --git a/awx/ui/static/js/shared/prompt-dialog.js b/awx/ui/static/js/shared/prompt-dialog.js
index b3637961bd..96f0308fbe 100644
--- a/awx/ui/static/js/shared/prompt-dialog.js
+++ b/awx/ui/static/js/shared/prompt-dialog.js
@@ -36,7 +36,7 @@ angular.module('PromptDialog', ['Utilities', 'sanitizeFilter'])
scope = dialog.scope(), cls, local_backdrop;
scope.promptHeader = params.hdr;
- scope.promptBody = $filter('sanitize')(params.body);
+ scope.promptBody = params.body;
scope.promptAction = params.action;
local_backdrop = (params.backdrop === undefined) ? "static" : params.backdrop;