java - Magnolia rich text fields -


i'm looking @ outputting rich text in magnolia directly front-end. i'm defining field 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 template, when information saved jcr appears encode data html entities:

title: ${content.title} subtitle: ${content.subtitle} 

outputs (raw source) ...

title: title field subtitle: <p>the subtitle field</p> 

but should output (raw source) ...

title: title field subtitle: <p>the subtitle field</p> 

is there way stop rich text fields being encoded automatically?

the decode function works: https://documentation.magnolia-cms.com/display/docs/cmsfn#cmsfn-decodehtml

[#if content.text?has_content]     ${cmsfn.decode(content).text} [/#if] 

Comments