Skip to content

Commit 0116611

Browse files
fix: remove unnecessary escape characters
1 parent 5ec3126 commit 0116611

File tree

1 file changed

+2
-1
lines changed
  • src/editors/sharedComponents/TinyMceWidget

1 file changed

+2
-1
lines changed

src/editors/sharedComponents/TinyMceWidget/hooks.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,8 @@ export const editorConfig = ({
457457
valid_elements: '*[*]',
458458
// FIXME: this is passing 'utf-8', which is not a valid entity_encoding value. It should be 'named' etc.
459459
entity_encoding: 'utf-8' as any,
460-
protect: [/\<script[^>]*\/\>/g], // protect self-closing script tags from being mangled
460+
// Protect self-closing <script /> tags from being mangled, to preserve backwards compatibility with content that relied on this behavior
461+
protect: [/<script[^>]*\/>/g],
461462
},
462463
};
463464
};

0 commit comments

Comments
 (0)