Skip to content

Commit

Permalink
Small accessibility improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
fnoks committed Nov 19, 2018
1 parent 07c6ceb commit ed3e941
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/blanks.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,8 @@ H5P.Blanks = (function ($, Question) {
var afterCheck;
if (self.params.behaviour.autoCheck) {
afterCheck = function () {
self.read((this.correct() ? self.params.answerIsCorrect : self.params.answerIsWrong).replace(':ans', this.getUserAnswer()));
var answer = $("<div>").text(this.getUserAnswer()).html();
self.read((this.correct() ? self.params.answerIsCorrect : self.params.answerIsWrong).replace(':ans', answer));
if (self.done || self.allBlanksFilledOut()) {
// All answers has been given. Show solutions button.
self.toggleButtonVisibility(STATE_CHECKING);
Expand Down

0 comments on commit ed3e941

Please sign in to comment.