Replace TextFragment with HtmlFragment

Hello. I was wondering if there’s by any chance a way to replace an existing TextFragment with a HtmlFragment?
Thanks in advance for your help.

@Pablo.Vidal

Can you please share sample input and expected output file so that we may help you further in this regard.

Thanks for the quick response. We’re evaluating to integrate your library into our project so I have to ask the customer for permission to share the docs, I’ll come back to you if they grant it. Thank you.

@Pablo.Vidal

We assure you that we do not disclose your files with anyone and use them only for testing purposes. Once the issues is fixed, we delete them from our system.