diff --git a/awx/ui/client/src/access/roleList.partial.html b/awx/ui/client/src/access/roleList.partial.html
index d98c13d53b..1478c9dc37 100644
--- a/awx/ui/client/src/access/roleList.partial.html
+++ b/awx/ui/client/src/access/roleList.partial.html
@@ -9,7 +9,7 @@
+ aw-tool-tip='{{entry.team_name | sanitize}}' aw-tip-placement='bottom'>
{{ entry.name }}
diff --git a/awx/ui/client/src/app.js b/awx/ui/client/src/app.js
index 2229f4ca77..b6f43018fc 100644
--- a/awx/ui/client/src/app.js
+++ b/awx/ui/client/src/app.js
@@ -521,11 +521,12 @@ var tower = angular.module('Tower', [
'ClearScope', 'Socket', 'LoadConfig', 'Store',
'ShowSocketHelp', 'pendoService', 'Prompt', 'Rest', 'Wait',
'ProcessErrors', '$state', 'GetBasePath', 'ConfigService',
- 'FeaturesService',
+ 'FeaturesService', '$filter',
function ($q, $compile, $cookieStore, $rootScope, $log, CheckLicense,
$location, Authorization, LoadBasePaths, Timer, ClearScope, Socket,
LoadConfig, Store, ShowSocketHelp, pendoService, Prompt, Rest, Wait,
- ProcessErrors, $state, GetBasePath, ConfigService, FeaturesService) {
+ ProcessErrors, $state, GetBasePath, ConfigService, FeaturesService,
+ $filter) {
var sock;
$rootScope.addPermission = function (scope) {
$compile("")(scope);
@@ -563,7 +564,7 @@ var tower = angular.module('Tower', [
if (accessListEntry.team_id) {
Prompt({
hdr: `Team access removal`,
- body: `Please confirm that you would like to remove ${entry.name} access from the team ${entry.team_name}. This will affect all members of the team. If you would like to only remove access for this particular user, please remove them from the team.
`,
+ body: `Please confirm that you would like to remove ${entry.name} access from the team ${$filter('sanitize')(entry.team_name)}. This will affect all members of the team. If you would like to only remove access for this particular user, please remove them from the team.
`,
action: action,
actionText: 'REMOVE TEAM ACCESS'
});