HTML mergefields

Hi

Is there any way to indicate that a mergefield contains HTML or some other sort of formatted text?

Thank you

Hi
Thanks for your request. If you need to insert HTML into the mergfireld you should use MergeField event handler. Please see the following link for more information.
https://reference.aspose.com/words/net/aspose.words.mailmerging/ifieldmergingcallback/
If data you’d like to insert is valid HTML document of some other sort of documents supported by Aspose.Words then you can try using DetectFileFormat method. Please see the following link for more information.
https://reference.aspose.com/words/net/aspose.words/fileformatutil/detectfileformat/
Hope this helps.
Best regards.