From 158a600f91e44e3485fb72e541fb75c2b2b1a5c7 Mon Sep 17 00:00:00 2001 From: azanbinzahid Date: Tue, 1 Dec 2020 16:05:18 +0500 Subject: [PATCH] PROD-2138 --- .../js/discussion/views/response_comment_edit_view.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/common/static/common/js/discussion/views/response_comment_edit_view.js b/common/static/common/js/discussion/views/response_comment_edit_view.js index 34cfa4153a..c2cafdfc7e 100644 --- a/common/static/common/js/discussion/views/response_comment_edit_view.js +++ b/common/static/common/js/discussion/views/response_comment_edit_view.js @@ -43,8 +43,11 @@ ResponseCommentEditView.prototype.render = function() { var context = $.extend({mode: this.options.mode, startHeader: this.options.startHeader}, this.model.attributes); - this.template = _.template($('#response-comment-edit-template').html()); - this.$el.html(this.template(context)); + this.template = edx.HtmlUtils.template($('#response-comment-edit-template').html()); + edx.HtmlUtils.setHtml( + this.$el, + this.template(context) + ); this.delegateEvents(); DiscussionUtil.makeWmdEditor(this.$el, $.proxy(this.$, this), 'edit-comment-body'); return this;