mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-12 05:58:48 -05:00
quick fix invalid comments
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@43 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
994a4ebbbd
commit
b68ce68765
@ -1162,8 +1162,10 @@ public class ExchangeSession {
|
||||
ByteArrayInputStream bais = new ByteArrayInputStream(htmlBody
|
||||
// quick fix remove default office namespace
|
||||
.replaceFirst("xmlns=\".*\"", "")
|
||||
// quick fix remove inline processing instructions
|
||||
// quick fix remove inline processing instructions
|
||||
.replaceAll("<\\?xml:namespace", "")
|
||||
// quick fix invalid comments
|
||||
.replaceAll("<!---", "<!-- -")
|
||||
.getBytes("UTF-8"));
|
||||
XmlDocument xmlBody = tidyDocument(bais);
|
||||
List<Attribute> htmlBodyAllImgList = xmlBody.getNodes("//img/@src");
|
||||
|
Loading…
Reference in New Issue
Block a user