/** * Convert this nodelist into the equivalent HTML. * @return The contents of the list as HTML text. */ public String toHtml () { return (toHtml (false)); }
/** * Convert this nodelist into the equivalent HTML. * @deprecated Use {@link #toHtml}. * @return The contents of the list as HTML text. */ public String asHtml() { return (toHtml ()); }
public String toString() { // try { // return parser.parse(null).toHtml(false); // } catch (ParserException e1) { // return null; // } return nodes.toHtml(false); }
private void processHTMLBodyWithBASE64Images(MimeMultipart multipart) throws ParserException, MessagingException, NoSuchAlgorithmException, SMIMEException, java.security.NoSuchProviderException { if (null != body && body.contains("base64")) { Parser parser = new Parser(body); NodeList nodeList = parser.parse(null); HtmlImageNodeVisitor htmlImageNodeVisitor = new HtmlImageNodeVisitor(); nodeList.visitAllNodesWith(htmlImageNodeVisitor); body = nodeList.toHtml(); addAllBase64ImagesToMimeMultipart(multipart, htmlImageNodeVisitor.getBase64Images()); } }
parser.setInputHTML(nl.toHtml());
parser.setInputHTML(nl.toHtml());