diff --git a/lms/static/js/student_account/views/account_section_view.js b/lms/static/js/student_account/views/account_section_view.js index 6c1b00a16c..5480e1511f 100644 --- a/lms/static/js/student_account/views/account_section_view.js +++ b/lms/static/js/student_account/views/account_section_view.js @@ -16,12 +16,15 @@ }, render: function() { - this.$el.html(_.template(sectionTemplate)({ - HtmlUtils: HtmlUtils, - sections: this.options.sections, - tabName: this.options.tabName, - tabLabel: this.options.tabLabel - })); + HtmlUtils.setHtml( + this.$el, + HtmlUtils.template(sectionTemplate)({ + HtmlUtils: HtmlUtils, + sections: this.options.sections, + tabName: this.options.tabName, + tabLabel: this.options.tabLabel + }) + ); this.renderFields(); },