diff --git a/static/js/scoutingsdk.js b/static/js/scoutingsdk.js index a4d170a..e4eb189 100644 --- a/static/js/scoutingsdk.js +++ b/static/js/scoutingsdk.js @@ -1524,7 +1524,7 @@ ${_this.escape(teamNumber)} (Blue ${i + 1}) ).json(); if (data.success) { element.querySelector(".red").innerHTML = " "; - let csv = Papa.parse(data.body.csv).data; + let csv = Papa.parse(data.body.csv.replaceAll("\\\"", """)).data; element.querySelector( ".data-table > tbody" ).innerHTML = csv @@ -1548,10 +1548,12 @@ ${_this.escape(teamNumber)} (Blue ${i + 1}) ? new Date( parseInt(cell) ).toLocaleString() - : cell.replaceAll( - "\\n", - "
" - ) + : _this + .escape(cell.replaceAll(""", "\"")) + .replaceAll( + "\\n", + "
" + ) }` ) .join("")}`; diff --git a/views/scouting/index.hbs b/views/scouting/index.hbs index 9c8036f..043cfb9 100644 --- a/views/scouting/index.hbs +++ b/views/scouting/index.hbs @@ -7,7 +7,7 @@ - +