diff --git a/src/core_plugins/tagcloud/public/tag_cloud_controller.js b/src/core_plugins/tagcloud/public/tag_cloud_controller.js index 8ed2c20601e11..f1fcc0c0051a3 100644 --- a/src/core_plugins/tagcloud/public/tag_cloud_controller.js +++ b/src/core_plugins/tagcloud/public/tag_cloud_controller.js @@ -32,9 +32,7 @@ module.controller('KbnTagCloudController', function ($scope, $element, Private, } const bucketName = containerNode.querySelector('.tagcloud-custom-label'); - bucketName.innerHTML = `${$scope.vis.aggs[0].makeLabel()} - ${$scope.vis.aggs[1].makeLabel()}`; - - + bucketName.textContent = `${$scope.vis.aggs[0].makeLabel()} - ${$scope.vis.aggs[1].makeLabel()}`; truncatedMessage.style.display = truncated ? 'block' : 'none';