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);