Skip to content

Commit

Permalink
fix: remove end tag on condition to avoid corner cases
Browse files Browse the repository at this point in the history
  • Loading branch information
marpesia committed Nov 22, 2022
1 parent 62c0004 commit 0c0a258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/js/qtiXmlRenderer/renderers/Figure.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ define(['tpl!taoQtiItem/qtiXmlRenderer/tpl/figure'], function (tpl) {

if (!figure.attr('showFigure')) {
data.tag = 'img';
const cleanImg = data.body.split('<qh5:figcaption >');
const cleanImg = data.body.split('<qh5:figcaption');
data.body = cleanImg[0];
}

Expand Down

0 comments on commit 0c0a258

Please sign in to comment.