Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/editors/sharedComponents/TinyMceWidget/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,8 @@
valid_elements: '*[*]',
// FIXME: this is passing 'utf-8', which is not a valid entity_encoding value. It should be 'named' etc.
entity_encoding: 'utf-8' as any,
// Protect self-closing <script /> tags from being mangled, to preserve backwards compatibility with content that relied on this behavior

Check failure on line 460 in src/editors/sharedComponents/TinyMceWidget/hooks.ts

View workflow job for this annotation

GitHub Actions / tests

This line has a length of 143. Maximum allowed is 120
protect: [/<script[^>]*\/>/g],
},
};
};
Expand Down
Loading