@Test public void testRemove() {

    Document doc = Jsoup.parse("<p>One <span>two</span> three</p>");
    Element p = doc.select("p").first();
    p.childNode(0).remove();
    
    assertEquals("two three", p.text());
    assertEquals("<span>two</span> three", TextUtil.stripNewlines(p.html()));
}