The HTML parameter makes content from a Rich Text Area field appear with its formatting in the generated document. Without it, the document shows raw HTML tags such as <p>, <br> and <b> instead of formatting. The HTML parameter removes unnecessary tags and outputs clean formatting.

Syntax

{{HTML:ObjectName.FieldAPI}}

Values

ComponentEffect
ObjectName.FieldAPIThe API name of a Rich Text Area field, for example Account.Facts__c. Its content is merged with its formatting.

Use this parameter only with Rich Text Area fields. Standard text fields and other field types don't need it.

Where to add it

Type the HTML merge field in your Word template where you want the rich text to appear.

Example

Field value (Rich Text Area)SyntaxOutput
Text with <p>, <br> and <b> formatting{{Account.Facts__c}}The text with the raw HTML tags visible
The same value{{HTML:Account.Facts__c}}The text with its formatting applied

Without the parameter, {{Account.Facts__c}} shows the raw HTML tags:

Generated document showing a rich text field with raw HTML tags visible

With the parameter, {{HTML:Account.Facts__c}} shows the formatted text:

Generated document showing the same rich text field with formatting applied

Works in

The examples on this page use a Word template. Images inside the Rich Text Area field are shown when you use the HTML parameter.

Common errors