@Test public void parseEmbeddedHtml() { HTMLElement element = new HTMLElement("before <html>test"); assertEquals("before test", element.getText()); element = new HTMLElement("<html>test</html> after"); assertEquals("test after", element.getText()); element = new HTMLElement("before <html>test</html> middle <html>test2</html> after"); assertEquals("before test middle test2 after", 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();  }