HTML
The value saved by certain fields such as the Rich Text field is stored as html. This is so when we’re editing the values we can apply styling such as bold, italic, underline etc.
In the example json at the top of the page, the value for comments is:
<p>This is a <strong>paragraph</strong> of comments</p>
You should notice some tags (p, strong) inside this value. These are
examples of html tags that embed the styling information within the content.
In the example above the word “paragraph” is wrapped in strong which means
it should be displayed in bold.
If we wish to display a value that contains html, we should use the following syntax
~~ field
Notice the double tilde before the name of the field, this is what tells the rendering engine to recognise the value as html, and covert it to the equivalent for docx.
When the report is rendered, it would look like this: