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 5ec3126 commit 0116611Copy full SHA for 0116611
src/editors/sharedComponents/TinyMceWidget/hooks.ts
@@ -457,7 +457,8 @@ 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: [/\<script[^>]*\/\>/g], // protect self-closing script tags from being mangled
+ // Protect self-closing <script /> tags from being mangled, to preserve backwards compatibility with content that relied on this behavior
461
+ protect: [/<script[^>]*\/>/g],
462
},
463
};
464
0 commit comments