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
|
ByteArrayInputStream bais = new ByteArrayInputStream(htmlBody
|
||||||
// quick fix remove default office namespace
|
// quick fix remove default office namespace
|
||||||
.replaceFirst("xmlns=\".*\"", "")
|
.replaceFirst("xmlns=\".*\"", "")
|
||||||
// quick fix remove inline processing instructions
|
// quick fix remove inline processing instructions
|
||||||
.replaceAll("<\\?xml:namespace", "")
|
.replaceAll("<\\?xml:namespace", "")
|
||||||
|
// quick fix invalid comments
|
||||||
|
.replaceAll("<!---", "<!-- -")
|
||||||
.getBytes("UTF-8"));
|
.getBytes("UTF-8"));
|
||||||
XmlDocument xmlBody = tidyDocument(bais);
|
XmlDocument xmlBody = tidyDocument(bais);
|
||||||
List<Attribute> htmlBodyAllImgList = xmlBody.getNodes("//img/@src");
|
List<Attribute> htmlBodyAllImgList = xmlBody.getNodes("//img/@src");
|
||||||
|
|
Loading…
Reference in New Issue