From 85f55ac388156b65a41c614072c33d80f66264d6 Mon Sep 17 00:00:00 2001 From: azanbinzahid Date: Tue, 1 Dec 2020 16:08:48 +0500 Subject: [PATCH] PROD-2139 --- .../js/discussion/views/thread_response_edit_view.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/common/static/common/js/discussion/views/thread_response_edit_view.js b/common/static/common/js/discussion/views/thread_response_edit_view.js index 13da03e001..d30e5dcc13 100644 --- a/common/static/common/js/discussion/views/thread_response_edit_view.js +++ b/common/static/common/js/discussion/views/thread_response_edit_view.js @@ -43,8 +43,11 @@ ThreadResponseEditView.prototype.render = function() { var context = $.extend({mode: this.options.mode, startHeader: this.options.startHeader}, this.model.attributes); - this.template = _.template($('#thread-response-edit-template').html()); - this.$el.html(this.template(context)); + this.template = edx.HtmlUtils.template($('#thread-response-edit-template').html()); + edx.HtmlUtils.setHtml( + this.$el, + this.template(context) + ); this.delegateEvents(); DiscussionUtil.makeWmdEditor(this.$el, $.proxy(this.$, this), 'edit-post-body'); return this;