We use Aspose Email to process arbitrary emails and would like
to use Aspose HTML to parse the body HTML of these emails.
We have an issue with marketing/spam emails that link to dead URL, as
that seems to hang Aspose HTML. Other Aspose products have configurable
timeout to deal with these cases.
his is the repor code:
String filename = “/tmp/slow_load.html”;
String emailHtmlBody = new String(Files.readAllBytes(Paths.get(filename))); System.out.println("Started At: "+ new Date()); HTMLDocument document = new com.aspose.html.HTMLDocument(emailHtmlBody, "about:blank"); System.out.println("Ended At: "+ new Date());
This is the File: