Handling html nodes in Aspose Document

Hello there,

I am running mail merge as a result of which Merge fiellds are replaced by actual values.
For some of the merge fields, they are supposed to be replaced by rich text that looks like:

<span style="font-size: 11pt; font-family: "Calibri","sans-serif";"><p><span>The
property is approached via a well maintained foregarden having shaped lawn,
mature side borders, slabbed pathway leading
to</span></p><p><span></span>&nbsp;</p><p><span>PORCH
ENTRANCE</span></p>

Apart from <p><span> tags , they can have some text formatting html codes as well (for bold/Italic etc.)
How do you suggest I can handle these tags at run-time and replace them with actual html formatting in document.

Thank you!

Any suggestion for this… Sorry need it bit urgent.

Hi Nutan,

Thanks for your request. You can use MergeField event handler to achieve this. Please see the documentation to learn more:
https://reference.aspose.com/words/net/aspose.words.mailmerging/ifieldmergingcallback/
Best regards.

Thank you so much for your excellent support!

Cheers!!!