Removes HTML tags shown in Browser Notification

Fixes https://jira.coreos.com/browse/QUAY-956
This commit is contained in:
Sida Chen 2018-07-31 11:48:14 -04:00
parent 5e4d52f1fd
commit bf4cef4870
2 changed files with 17 additions and 3 deletions

View file

@ -136,5 +136,9 @@ angular.module('quay').factory('UtilService', ['$sanitize', 'markdownConverter',
utilService.UrlBuilder = UrlBuilder;
utilService.removeHtmlTags = function(text){
return new DOMParser().parseFromString(text, 'text/html').body.textContent || text;
};
return utilService;
}]);