I'm looking at outputting Rich Text in Magnolia directly to the front-end. I'm defining the field as below:
@TabFactory("Content")
public void contentTab(UiConfig cfg, TabBuilder tab) {
tab.fields(
cfg.fields.text("title").label("Title"),
cfg.fields.richText("subtitle").label("Subtitle")
);
}
Within a template, when information is saved into the JCR it appears to encode the data with HTML entities:
Title: ${content.title}
Subtitle: ${content.subtitle}
Outputs (raw source) ...
Title: The Title Field
Subtitle: <p>The Subtitle Field</p>
But should output (raw source) ...
Title: The Title Field
Subtitle: <p>The Subtitle Field</p>
Is there a way to stop the Rich Text fields from being encoded automatically?