diff --git a/src/editors/sharedComponents/TinyMceWidget/hooks.js b/src/editors/sharedComponents/TinyMceWidget/hooks.js index 3730e809b5..da5ed263d3 100644 --- a/src/editors/sharedComponents/TinyMceWidget/hooks.js +++ b/src/editors/sharedComponents/TinyMceWidget/hooks.js @@ -362,6 +362,7 @@ export const editorConfig = ({ valid_children: '+body[style]', valid_elements: '*[*]', entity_encoding: 'utf-8', + protect: [/\]*\/\>/g], // protect self-closing script tags from being mangled }, }; };