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

227 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 answers

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()