Hi Tolik,
Thanks for your inquiry. In case you are using an older version of Aspose.Words, I would suggest you please upgrade to the latest version (v13.6.0) from here:
https://downloads.aspose.com/words/java
tolik:
The library creates:
★ ZOOM—Get closer to your ideas. Pinch to bring up zoom without losing your place.
The question is: why the symbol “—” was surrounded with the tag “”? When I do the same operation via MS Word I get HTML like (the symbol “—” is not surrounded with the tag “”):
★ ZOOM—Get closer to your ideas. Pinch to bring up
zoom without losing your place.
Please note that Aspose.Words tries to mimic the same behaviour as MS Word do. Aspose.Words converts the MS Word documents to html (“Web Page, Filtered”). Please convert your document to HTML (“Web Page, Filtered”) by using MS Word and check the HTML output.
After using Document.joinRunsWithSameFormatting method the output html have same span tags. I have attached the output html files generated with both Aspose.Words and MS Word with this post for your kind reference.
Document dstDoc = new Document(MyDir + "whats-new.docx");
dstDoc.joinRunsWithSameFormatting();
dstDoc.save(MyDir + "Out.html");
MS Word output
★ ZOOM—Get closer to your ideas. Pinch to bring up zoom without losing your place.
Aspose.Words output
★ZOOM—Get closer to your ideas. Pinch to bring up zoom without losing your place.