Problem/Motivation
The site administrators are using the CKEditor 5 FULL HTML text format to provide custom stylings using tags with the source editing. But when the css is used with the '>' syntax, ex:
<style type="text/css">
.sections > h2 {
</style>
the > symbol (the child combinator selector: https://developer.mozilla.org/en-US/docs/Web/CSS/Child_combinator) gets replaced into html entities and shown as
<style type="text/css">
.sections > h2 {
</style>
This is checked with the latest 10.1.5 version. We checked by unchecking the filter "Correct faulty and chopped off HTML" filter but still able to reproduce this issue.
Comments
Comment #2
ramprassad commentedComment #3
ramprassad commentedComment #4
tkim49 commentedHi, we are experiencing the same on our site. Any help would be greatly appreciated. Thanks.
Comment #5
amietpatial commentedI am also able to reproduce this issue on 10.1.6
Comment #6
cilefen commentedComment #7
wim leersWow, that's quite the edge case-y advanced use case 😅
Comment #8
ramprassad commentedThere is a patch available for this now in this issue https://www.drupal.org/project/drupal/issues/3364884 . This worked for me!
Comment #9
wim leersRiiiight! I knew I'd seen something like this before, but I failed to connect the dots — thank you so much, @ramprassad!
Closing this issue as a duplicate, moving relevant info there and crediting you 😊