@Test public void testGetHTML() throws Exception { String content = "<html><head></head><body><p>one</p><p>two</p></body></html>"; doc.putContentField("othercontent", content); jsoup.setReturnHTML(true); String oldHtmlField = jsoup.getHtmlField(); jsoup.setHtmlField("othercontent"); jsoup.process(doc); jsoup.setHtmlField(oldHtmlField); jsoup.setReturnHTML(false); String correct = "<body><p>one</p><p>two</p></body>"; String result = doc.getContentField("html").toString(); assertTrue("Expected " + correct + " got " + result, result.equalsIgnoreCase(correct)); }
public void setReturnHTML(boolean b) { this.returnHTML = b; }
JsoupSelector extends AbstractJsoupSelector { public void setReturnHTML(boolean b) { this.returnHTML = b; } }
JsoupSelector extends AbstractJsoupSelector { public void setReturnHTML(boolean b) { this.returnHTML = b; }  }
JsoupSelector extends AbstractJsoupSelector { public void setReturnHTML(boolean b) { this.returnHTML = b; }  boolean getReturnHTML(); void setReturnHTML(boolean b); }
JsoupSelector extends AbstractJsoupSelector { public void setReturnHTML(boolean b) { this.returnHTML = b; }  boolean getReturnHTML(); void setReturnHTML(boolean b);  }