From c2832dfb61898305baa1756366dfd864bd1a4f6d Mon Sep 17 00:00:00 2001 From: Ali-D-Akbar Date: Wed, 10 Jun 2020 15:04:45 +0500 Subject: [PATCH] PROD-1571 --- .../static/learner_profile/js/views/section_two_tab.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/openedx/features/learner_profile/static/learner_profile/js/views/section_two_tab.js b/openedx/features/learner_profile/static/learner_profile/js/views/section_two_tab.js index 03e675db3c..23064c9e6b 100644 --- a/openedx/features/learner_profile/static/learner_profile/js/views/section_two_tab.js +++ b/openedx/features/learner_profile/static/learner_profile/js/views/section_two_tab.js @@ -3,9 +3,10 @@ define( [ - 'gettext', 'jquery', 'underscore', 'backbone', 'text!learner_profile/templates/section_two.underscore' + 'gettext', 'jquery', 'underscore', 'backbone', 'text!learner_profile/templates/section_two.underscore', + 'edx-ui-toolkit/js/utils/html-utils' ], - function(gettext, $, _, Backbone, sectionTwoTemplate) { + function(gettext, $, _, Backbone, sectionTwoTemplate, HtmlUtils) { var SectionTwoTab = Backbone.View.extend({ attributes: { class: 'wrapper-profile-section-two' @@ -17,10 +18,7 @@ render: function() { var self = this; var showFullProfile = this.options.showFullProfile(); - this.$el.html(this.template({ - ownProfile: self.options.ownProfile, - showFullProfile: showFullProfile - })); + this.$el.html(HtmlUtils.HTML(this.template({ownProfile: self.options.ownProfile, showFullProfile: showFullProfile})).toString()); // eslint-disable-line max-len if (showFullProfile) { _.each(this.options.viewList, function(fieldView) { self.$el.find('.field-container').append(fieldView.render().el);