diff --git a/web/reviewer.js b/web/reviewer.js index ef2b21e24..4346bcfc5 100644 --- a/web/reviewer.js +++ b/web/reviewer.js @@ -9,7 +9,11 @@ function _updateQA(html, fadeTime, onupdate, onshown) { var qa = $("#qa"); qa.fadeTo(fadeTime, 0, function() { // update text - qa.html(html); + try { + qa.html(html); + } catch(err) { + qa.text("Invalid HTML on card: "+err); + } _removeStylingFromMathjaxCloze(); onupdate(qa);