in an advanced pdf template, I have a richtext fie...
# ask-stanley-ai
n
in an advanced pdf template, I have a richtext field that contains an html table. How do i get it to render as the content and not as raw text when I print the record
c
AI generated answer (using internal Slack threads):
In order to render HTML content in an Advanced PDF template, you need to use the
keepAsHtml
built-in function provided by FreeMarker. This function tells the PDF generator to treat the content as HTML rather than plain text. Here's an example of how you can use it:
Copy code
freemarker
${yourField?keepAsHtml}
Replace
yourField
with the actual field name that contains the HTML content. This will render the HTML content as it is, instead of displaying it as raw text. Please note that not all HTML tags are supported in Advanced PDF templates. Unsupported tags may cause the PDF generation to fail or the output may not be as expected. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.820907652
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.818559706
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.815618277
Please provide your feedback on this answer.