From b8d36e7a18b9a63a5774688f1dc6fbb17892d45f Mon Sep 17 00:00:00 2001 From: Ali-D-Akbar Date: Wed, 14 Apr 2021 16:42:57 +0500 Subject: [PATCH] refactor: disable xss PROD-2316 --- lms/static/js/dashboard/donation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/static/js/dashboard/donation.js b/lms/static/js/dashboard/donation.js index 0ea1fb92bd..3618c79d4a 100644 --- a/lms/static/js/dashboard/donation.js +++ b/lms/static/js/dashboard/donation.js @@ -31,7 +31,7 @@ var edx = edx || {}; type: 'hidden', name: key, value: value - }).appendTo(form); + }).appendTo(form); // xss-lint: disable=javascript-jquery-insert-into-target }); }; @@ -98,7 +98,7 @@ var edx = edx || {}; */ render: function() { var html = _.template($('#donation-tpl').html())({}); - this.$el.html(html); + this.$el.html(html); // xss-lint: disable=javascript-jquery-html this.$amount = $('input[name="amount"]', this.$el); this.$submit = $('.action-donate', this.$el); this.$errorMsg = $('.donation-error-msg', this.$el);