Commit f5005841 authored by mathieso's avatar mathieso

Grading bug fix.

parent bb1bdbf4
......@@ -12775,9 +12775,19 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
responseOptionResponse() {
let responseOption = window.responseOptions[this.responseOptionId];
let response = responseOption.response;
// Get rid of HTML (e.g., links) in the response.
response = $(response).text();
return response;
var tmp = document.createElement("div");
tmp.innerHTML = response;
return tmp.textContent || tmp.innerText || "";
// Change links in the response.
// let r = $(response);
// $(r).find("a").each(function(i, e) {
// $(e).attr("target", "_blank");
// });
// result = $(r).html();
// return result;
//return response
},
//Does this option complete the rubric item?
completes() {
......
This diff is collapsed.
......@@ -40,9 +40,10 @@
responseOptionResponse() {
let responseOption = window.responseOptions[this.responseOptionId];
let response = responseOption.response;
// Get rid of HTML (e.g., links) in the response.
response = $(response).text();
return response;
// Remove HTML - links in the response can get clicked during grading.
var tmp = document.createElement("div");
tmp.innerHTML = response;
return tmp.textContent || tmp.innerText || "";
},
//Does this option complete the rubric item?
completes() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment