Skip to content

Commit

Permalink
HFP-3674 remove tags from solutions (h5p#141)
Browse files Browse the repository at this point in the history
* HFP-3674 remove tags from solutions

* HFP-3674 remove tags from solutions at init

* HFP-3674 update regex html tag filter
  • Loading branch information
devland authored Aug 13, 2024
1 parent 2a65fea commit 9dda5c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/blanks.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ H5P.Blanks = (function ($, Question) {
if (clozeEnd === -1) {
continue; // No end
}
var clozeContent = question.substring(clozeStart, clozeEnd);
var clozeContent = question.substring(clozeStart, clozeEnd).replaceAll(/<\/?[a-z]*\d?>/ig, '');
var replacer = '';
if (clozeContent.length) {
replacer = handler(self.parseSolution(clozeContent));
Expand Down

0 comments on commit 9dda5c4

Please sign in to comment.