bbottema/outlook-message-parser

HTML start tags with extra space not handled correctly

fadeyev opened this issue · 1 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