From 0f3eb6e94c1361f706d9f92c140e3e5ef3d8c98e Mon Sep 17 00:00:00 2001 From: cahrens Date: Tue, 31 Jan 2017 13:43:36 -0500 Subject: [PATCH] Fix safe template warning. --- common/lib/xmodule/xmodule/js/src/capa/display.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/lib/xmodule/xmodule/js/src/capa/display.js b/common/lib/xmodule/xmodule/js/src/capa/display.js index 9295822bc2..df9302972d 100644 --- a/common/lib/xmodule/xmodule/js/src/capa/display.js +++ b/common/lib/xmodule/xmodule/js/src/capa/display.js @@ -1043,7 +1043,8 @@ } else if (!$inputLabel.hasClass('choicegroup_correct')) { // If the status HTML is not already present (due to clicking Submit), append // the status HTML for correct answers. - results.push($inputLabel.addClass('choicegroup_correct').append(correctStatusHtml)); + edx.HtmlUtils.append($inputLabel, edx.HtmlUtils.HTML(correctStatusHtml)); + results.push($inputLabel.addClass('choicegroup_correct')); } } return results;