- {% filter force_escape %}
{% blocktrans trimmed asvar replied_to_text %}
- {{ comment_username }} replied to
+ {{ comment_username }} replied to {start_tag}{{ thread_title }}{end_tag}:
{% endblocktrans %}
- {% endfilter %}
- {{ replied_to_text }} {{ thread_title }}:
+ {% interpolate_html replied_to_text start_tag=''|safe end_tag=''|safe %}
<%= membership_message %>
+ <%- membership_message %>
<% _.each(memberships, function (membership) { %>
diff --git a/lms/static/js/discovery/views/courses_listing.js b/lms/static/js/discovery/views/courses_listing.js
index c9bf0da98b1f..65413c62dbdf 100644
--- a/lms/static/js/discovery/views/courses_listing.js
+++ b/lms/static/js/discovery/views/courses_listing.js
@@ -4,8 +4,9 @@
'underscore',
'backbone',
'gettext',
- 'js/discovery/views/course_card'
- ], function($, _, Backbone, gettext, CourseCardView) {
+ 'js/discovery/views/course_card',
+ 'edx-ui-toolkit/js/utils/html-utils'
+ ], function($, _, Backbone, gettext, CourseCardView, HtmlUtils) {
'use strict';
return Backbone.View.extend({
@@ -38,7 +39,10 @@
var item = new CourseCardView({model: result});
return item.render().el;
}, this);
- this.$list.append(items);
+ HtmlUtils.append(
+ this.$list,
+ HtmlUtils.HTML(items)
+ );
/* eslint no-param-reassign: [2, { "props": false }] */
},
diff --git a/lms/static/js/student_account/views/HintedLoginView.js b/lms/static/js/student_account/views/HintedLoginView.js
index 74793304e901..720ded988b4a 100644
--- a/lms/static/js/student_account/views/HintedLoginView.js
+++ b/lms/static/js/student_account/views/HintedLoginView.js
@@ -1,7 +1,7 @@
(function(define) {
'use strict';
- define(['jquery', 'underscore', 'backbone'],
- function($, _, Backbone) {
+ define(['jquery', 'underscore', 'backbone', 'edx-ui-toolkit/js/utils/html-utils'],
+ function($, _, Backbone, HtmlUtils) {
return Backbone.View.extend({
el: '#hinted-login-form',
@@ -22,10 +22,12 @@
},
render: function() {
- $(this.el).html(_.template(this.tpl)({
- hintedProvider: this.hintedProvider
- }));
-
+ HtmlUtils.setHtml(
+ $(this.el),
+ HtmlUtils.template(this.tpl)({
+ hintedProvider: this.hintedProvider
+ })
+ );
return this;
},
diff --git a/lms/static/js/student_account/views/InstitutionLoginView.js b/lms/static/js/student_account/views/InstitutionLoginView.js
index d466d15c1991..dbda7e6dee13 100644
--- a/lms/static/js/student_account/views/InstitutionLoginView.js
+++ b/lms/static/js/student_account/views/InstitutionLoginView.js
@@ -1,7 +1,7 @@
(function(define) {
'use strict';
- define(['jquery', 'underscore', 'backbone'],
- function($, _, Backbone) {
+ define(['jquery', 'underscore', 'backbone', 'edx-ui-toolkit/js/utils/html-utils'],
+ function($, _, Backbone, HtmlUtils) {
return Backbone.View.extend({
el: '#institution_login-form',
@@ -13,13 +13,15 @@
},
render: function() {
- $(this.el).html(_.template(this.tpl)({
- // We pass the context object to the template so that
- // we can perform variable interpolation using sprintf
- providers: this.providers,
- platformName: this.platformName
- }));
-
+ HtmlUtils.setHtml(
+ $(this.el),
+ HtmlUtils.template(this.tpl)({
+ // We pass the context object to the template so that
+ // we can perform variable interpolation using sprintf
+ providers: this.providers,
+ platformName: this.platformName
+ })
+ );
return this;
}
});
|