summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorkushalpandya <kushal@gitlab.com>2017-06-20 11:37:44 +0530
committerkushalpandya <kushal@gitlab.com>2017-06-20 11:37:44 +0530
commit250caca5f49b1ac9f3dd887beaad1607291b2e56 (patch)
treea38280950e0fb2f31c0bb70378ad7b5ce709afa2 /app
parent9874983106d8b9648e30899d5f735de3e203393d (diff)
downloadgitlab-ce-250caca5f49b1ac9f3dd887beaad1607291b2e56.tar.gz
Remove double escaping of comment preview text
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/notes.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js
index 0a9cefd34c3..d56cf959486 100644
--- a/app/assets/javascripts/notes.js
+++ b/app/assets/javascripts/notes.js
@@ -1267,7 +1267,6 @@ const normalizeNewlines = function(str) {
*/
Notes.prototype.createPlaceholderNote = function ({ formContent, uniqueId, isDiscussionNote, currentUsername, currentUserFullname, currentUserAvatar }) {
const discussionClass = isDiscussionNote ? 'discussion' : '';
- const escapedFormContent = _.escape(formContent);
const $tempNote = $(
`<li id="${uniqueId}" class="note being-posted fade-in-half timeline-entry">
<div class="timeline-entry-inner">
@@ -1287,7 +1286,7 @@ const normalizeNewlines = function(str) {
</div>
<div class="note-body">
<div class="note-text">
- <p>${escapedFormContent}</p>
+ <p>${formContent}</p>
</div>
</div>
</div>