diff --git a/static/js/services/util-service.js b/static/js/services/util-service.js index 8a233de63..760d7a372 100644 --- a/static/js/services/util-service.js +++ b/static/js/services/util-service.js @@ -75,7 +75,8 @@ angular.module('quay').factory('UtilService', ['$sanitize', function($sanitize) }; utilService.escapeHtmlString = function(text) { - var adjusted = text.replace(/&/g, "&") + var textStr = (text || '').toString(); + var adjusted = textStr.replace(/&/g, "&") .replace(//g, ">") .replace(/"/g, """)