diff options
author | Neissi Torres Lima <neissi.lima@gmail.com> | 2014-09-05 15:44:47 -0300 |
---|---|---|
committer | Neissi Torres Lima <neissi.lima@gmail.com> | 2014-09-05 15:44:47 -0300 |
commit | d2cf8b51904420917a5f86986ce7c02e89935998 (patch) | |
tree | 49e93ccf124a0b8080479661e9608646eae99b92 /web-ui/app/js | |
parent | e8afeee6c893104048149b9c2f7e79da1fea0cf4 (diff) |
Neissi / Duda - Escaping recipients on mail view
Diffstat (limited to 'web-ui/app/js')
-rw-r--r-- | web-ui/app/js/views/recipientListFormatter.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web-ui/app/js/views/recipientListFormatter.js b/web-ui/app/js/views/recipientListFormatter.js index 20afc6ed..68e6dbe1 100644 --- a/web-ui/app/js/views/recipientListFormatter.js +++ b/web-ui/app/js/views/recipientListFormatter.js @@ -20,7 +20,9 @@ define(function() { 'use strict'; Handlebars.registerHelper('formatRecipients', function (header) { function wrapWith(begin, end) { - return function (x) { return begin + x + end; }; + return function (x) { + return begin + Handlebars.Utils.escapeExpression(x) + end; + }; } var to = _.map(header.to, wrapWith('<span class="to">', '</span>')); |