StringBuffer oHtmlBuff = new StringBuffer();
getText(oHtmlBuff);
Parser oPrsr = Parser.createParser(oHtmlBuff.toString(), getEncoding());
StringBean oStrBn = new StringBean();
try {
oPrsr.visitAllNodesWith (oStrBn);
} catch (ParserException pe) {
throw new MessagingException(pe.getMessage(), pe);
}
// Code for HTML parser 1.4
// oStrBn.setInputHTML(oHtmlBuff.toString());