refactoring of verifyHtmlPart