We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose compare error

Accidentally met such a situation. Aspose compare crash when html have symbol  

String source="<p></p>";
String incoming="<p><span style=\"font-family: Times New Roman; font-size: 11pt;\">&ensp;&#8203; Third party recipients</span></p>";

DocumentBuilder dbSource = new DocumentBuilder();
DocumentBuilder dbIncoming = new DocumentBuilder();
Document docSource = dbSource.getDocument();

Document docIncoming = dbIncoming.getDocument();
docSource.compare(docIncoming, "test", new Date());

Replace &ensp; with “” or &nbsp; before procces html fix problem for me. I don’t know if this case needs to be corrected.


We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-19129. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-19129) have been fixed in this Aspose.Words for .NET 20.2 update and this Aspose.Words for Java 20.2 update.