Chris Campbell
07/21/2021, 8:06 PM<b>Foo</b>
I would want it to render as Foo
instead of <b>Foo</b>
. It's currently rendering as the latter. Is there a way to fix this? If I add ${"<b>Foo</b>"}
directly to the template it renders as Foo
which is what I'm trying to do.David B
07/21/2021, 9:19 PMChris Campbell
07/21/2021, 9:26 PMThe template cannot be printed due to the following errors: Error on line 41, column 29 in template. Detail... For "${...}" content: Expected a string or something automatically convertible to string (number, date or boolean), or "template output" , but this has evaluated to a transform (wrapper: f.c.Interpret$TemplateProcessorModel): ==> remittancedetails?interpret [in template "template" at line 41, column 31] ---- FTL stack trace ("~" means nesting-related): - Failed at: ${remittancedetails?interpret} [in template "template" at line 41, column 29]
David B
07/21/2021, 9:50 PMremittancedetails?interpret
and then call it like the example?
<#assign inlineTemplate = templateSource?interpret>
<@inlineTemplate />
Chris Campbell
07/21/2021, 10:07 PM<b>Foo</b>
<#assign inlineTemplate = remittancedetails?interpret>
<@inlineTemplate />
David B
07/21/2021, 10:32 PMChris Campbell
07/22/2021, 3:35 PM<#assign contents = "Foo" />
${"<b>" + contents + "</b>"}
Complex HTML strings would be difficult. I ultimately decided to go a different route. I just thought I would put it out there if anyone runs into this issue in the future and has exhausted all their options.