Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Escaping Text in FreeMarker
A lot of the fields I need to reference in templates—addresses and company names especially—contain text such as ampersands that needs to be escaped. If I don't escape the text with "?html" I get an Unexpected Error, but this escapes rather too much (it escaped newlines, which is a problem... the tags are visible in the PDF). I'm also then forced to use it everywhere, as I have no way of knowing where else such characters may appear in the future.
I did some research and read about FreeMarker's "ftl" directive, particularly...
<#ftl output_format="XML" auto_esc=true>