I have a basic text component. The schema invokes CKEditor:
props:
type: object
properties:
text:
title: Text
type: string
contentMediaType: text/html
x-formatting-context: block
However when I output this as {{ text }}, I get escaped HTML. I can fix this by doing {{ text|raw }}, but this isn't in the examples, and obviously has security implications. I'd also argue, this negatively affects the developer experience.
We had discussion in Slack at https://drupal.slack.com/archives/C072JMEPUS1/p1759666595931849. One note is that
My concern is that this text component could be used in different page builders outside of Canvas. And the other page builders might not use CKEditor to filter.
This could result in a XSS vulnerability.
Output as `markup` so the text doesn't get double escaped.
Needs work
1.0
Shape matching
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
No activities found.