Make sure to escape error messages and add clarification to the trigger activation dialog

This commit is contained in:
Joseph Schorr 2015-05-11 13:47:40 -04:00
parent 4feb2a2032
commit 628d80895d
3 changed files with 12 additions and 1 deletions

View file

@ -61,6 +61,12 @@ angular.module('quay').factory('UtilService', ['$sanitize', function($sanitize)
return adjusted;
};
utilService.stringToHTML = function(text) {
text = utilService.escapeHtmlString(text);
text = text.replace(/\n/g, '<br>');
return text;
};
utilService.getRestUrl = function(args) {
var url = '';
for (var i = 0; i < arguments.length; ++i) {