quick fix invalid comments

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@43 3d1905a2-6b24-0410-a738-b14d5a86fcbd
master
mguessan 2007-04-11 21:47:42 +00:00
parent 994a4ebbbd
commit b68ce68765
1 changed files with 3 additions and 1 deletions

View File

@ -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");