We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b357cb commit 6afe609Copy full SHA for 6afe609
src/editors/sharedComponents/TinyMceWidget/hooks.ts
@@ -457,6 +457,9 @@ export const editorConfig = ({
457
valid_elements: '*[*]',
458
// FIXME: this is passing 'utf-8', which is not a valid entity_encoding value. It should be 'named' etc.
459
entity_encoding: 'utf-8' as any,
460
+ // Protect self-closing <script /> tags from being mangled,
461
+ // to preserve backwards compatibility with content that relied on this behavior
462
+ protect: [/<script[^>]*\/>/g],
463
},
464
};
465
0 commit comments