feat: add catch for script tags in question (#292)
This commit is contained in:
@@ -323,6 +323,9 @@ export class OLXParser {
|
||||
problemArray.forEach(tag => {
|
||||
const tagName = Object.keys(tag)[0];
|
||||
if (!nonQuestionKeys.includes(tagName)) {
|
||||
if (tagName === 'script') {
|
||||
throw new Error('Script Tag, reverting to Advanced Editor');
|
||||
}
|
||||
questionArray.push(tag);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user