Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkushalpandya <kushal@gitlab.com>2017-06-20 09:07:44 +0300
committerkushalpandya <kushal@gitlab.com>2017-06-20 09:07:44 +0300
commit250caca5f49b1ac9f3dd887beaad1607291b2e56 (patch)
treea38280950e0fb2f31c0bb70378ad7b5ce709afa2 /app/assets
parent9874983106d8b9648e30899d5f735de3e203393d (diff)
Remove double escaping of comment preview text
Diffstat (limited to 'app/assets')
-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>