bbottema / outlook-message-parser

A Java parser for Outlook messages (.msg files)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTML start tags with extra space not handled correctly

fadeyev opened this issue · comments

SimpleRTF2HTMLConverter.HTML_START_TAGS are:
private static final String[] HTML_START_TAGS = { "<html ", "<Html ", "<HTML " };
and should be
private static final String[] HTML_START_TAGS = { "<html", "<Html", "<HTML" };

Because of this fetchHtmlSection() method add extra <html> tags for some emails which have simple opening html tag without any attributes

Released v1.3.0