summaryrefslogtreecommitdiff
path: root/web-ui/app
diff options
context:
space:
mode:
authorBruno Wagner and Fabio Pio <bwagner+fpio@thoughtworks.com>2015-01-16 19:40:55 -0200
committerPixpoa pairing <pixpoapairing@pixelated-project.org>2015-01-16 19:40:55 -0200
commit2cbe39d723d429a8aea7601d37da8b694f77a81b (patch)
tree3ec3e1550dd2aa83f5612cee5694c601b0591f18 /web-ui/app
parent578b66f6c1e79661480bca24d785da3d6c1d7911 (diff)
Fixing jshint warnings
Diffstat (limited to 'web-ui/app')
-rw-r--r--web-ui/app/js/helpers/view_helper.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/web-ui/app/js/helpers/view_helper.js b/web-ui/app/js/helpers/view_helper.js
index bb909cea..22ab1324 100644
--- a/web-ui/app/js/helpers/view_helper.js
+++ b/web-ui/app/js/helpers/view_helper.js
@@ -35,30 +35,30 @@ define(
return textPlainBody.replace(/^(.*?)$/mg, '<p>$1</p>');
}
- function escapeHtmlTags (body) {
+ function escapeHtmlTags(body) {
var escapeIndex = {
- "&": "&amp;",
- "<": "&lt;",
- ">": "&gt;",
+ '&': '&amp;',
+ '<': '&lt;',
+ '>': '&gt;',
'"': '&quot;',
- "'":'&#39;',
- "/": '&#x2f;'
+ '\'':'&#39;',
+ '/': '&#x2f;'
};
return body.replace(/["'<>\/&]/g, function(char){
return escapeIndex[char];
- } )
+ });
}
- function escapeHtmlAndAddParagraphs (body) {
+ function escapeHtmlAndAddParagraphs(body) {
var escapedBody = escapeHtmlTags(body);
return addParagraphsToPlainText(escapedBody);
}
- function formatMailBody (mail) {
+ function formatMailBody(mail) {
var body = mail.htmlBodyPart ?
htmlWhitelister.sanitize(mail.htmlBody, htmlWhitelister.tagPolicy) :
escapeHtmlAndAddParagraphs(mail.textPlainBody);