Insert HTML

This example explains how to insert HTML on a MERGEFIELD. executeMailMerge API lets you insert HTML on a merge field. The mail merges data string can be either in XML or JSON format.

Please escape HTML characters in data source string and use “format”=“html” attribute.


The OpenAPI Specification lets you call the REST API directly from the browser.

You can use cURL command-line tool to access Aspose.Words web services easily. The following example shows how to make calls to Cloud API with cURL. Feel free to download and explore sample input template.doc and TestExecuteMailMergeData.txt files designed to act as a demonstration and let you figure out the details quickly. The output document would be as follows: TestPostDocumentExecuteMailMerge.docx.

Cloud SDK Family

Using an SDK is the best way to speed up the development. An SDK takes care of low-level details and lets you focus on your project tasks. Check out our GitHub repository for a complete list of Aspose.Words SDKs. Please check Available SDKs article to learn how to add an SDK to your project.

The following code examples demonstrate how to make calls to Aspose.Words web services using various SDKs: