diff --git a/js/scorm/wrapper.js b/js/scorm/wrapper.js index 0d154d7..3d51b9d 100644 --- a/js/scorm/wrapper.js +++ b/js/scorm/wrapper.js @@ -658,6 +658,8 @@ class ScormWrapper { } if (description) { const maxLength = 250; + // strip HTML + description = $(`

${description}

`).text(); if (description.length > maxLength) description = description.substr(0, maxLength).trim(); this.setValue(`${cmiPrefix}.description`, description); }