How do I keep class="value" in the splitted HTML without converting them to styles

I am trying to split a huge html file into several smaller pieces, it works fine, but then, the classnames that came in the original html are all replaced and styles added to the output files. How do I keep these classes but then still split the HTML into chuncks?

Example:

All these class=“gb_Md gb_8a gb_Ad” get removed, but I want to keep them. Thanks!

@AmoabaKelvin Unfortunately, there is no way to keep original HTML document structure after processing it using Aspose.Words.
Please note, Aspose.Words is designed to work with MS Word documents. HTML documents and MS Word documents object models are quite different and it is not always possible to provide 100% fidelity after processing HTML document.
You can try using Aspose.HTML to process HTML documents. This product is designed to work with HTML.

Thanks, is it possible to achieve what I want to do with Aspose.HTML?

@AmoabaKelvin You can consult with Aspose.HTML team in the appropriate forum regarding your requirements:
https://forum.aspose.com/c/html/29