Removes HTML tags shown in Browser Notification
Fixes https://jira.coreos.com/browse/QUAY-956
This commit is contained in:
parent
5e4d52f1fd
commit
bf4cef4870
2 changed files with 17 additions and 3 deletions
|
@ -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;
|
||||
}]);
|
||||
|
|
Reference in a new issue