diff --git a/assets/utils/h5p.js b/assets/utils/h5p.js index af6ceb1b..6cd6a715 100644 --- a/assets/utils/h5p.js +++ b/assets/utils/h5p.js @@ -1012,6 +1012,10 @@ function itemUntranslatable(property, value, parent) { if (value.trim().length === 0) { return true; } + // If this is a number, don't include it + if (!isNaN(value)) { + return true; + } if (!value.replaceAll(new RegExp(/<\/?[a-z][^>]*>/ig), '')) { // empty html tags return true; }