Jodd Jerry (java): how to get the contents of node itself?

282 Views Asked by At

Using Jodd Jerry, how to get the contents of node itself? (Jodd jerry is Java utilility)

Like jQuery:

$("selector").prop('outerHTML')
1

There are 1 best solutions below

1
senz On BEST ANSWER
String contents = jerry.$("selector").get(0).getHtml();
Node node = jerry.$("selector").get(0);   
String html = node.getHtml() 

node has getHmtl()