@Test public void parseSimpleHtml() { HTMLElement element = new HTMLElement("<html>test"); assertEquals("test", element.getText()); element = new HTMLElement("<html>test</html>"); assertEquals("test", element.getText()); }
public String getText() { try { return htmlDocument.getText(0, htmlDocument.getLength()).strip(); } catch (BadLocationException e) { return html; } }
HTMLElement { public String getText() { try { return htmlDocument.getText(0, htmlDocument.getLength()).strip(); } catch (BadLocationException e) { return html; } } }
HTMLElement { public String getText() { try { return htmlDocument.getText(0, htmlDocument.getLength()).strip(); } catch (BadLocationException e) { return html; } } HTMLElement(String html); }
HTMLElement { public String getText() { try { return htmlDocument.getText(0, htmlDocument.getLength()).strip(); } catch (BadLocationException e) { return html; } } HTMLElement(String html); FontDescriptor getFontDescriptor(); int getRGBColor(); String getHref(); String getText(); }
HTMLElement { public String getText() { try { return htmlDocument.getText(0, htmlDocument.getLength()).strip(); } catch (BadLocationException e) { return html; } } HTMLElement(String html); FontDescriptor getFontDescriptor(); int getRGBColor(); String getHref(); String getText();  }