3

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

Like jQuery:

$("selector").prop('outerHTML')
igr
  • 10,199
  • 13
  • 65
  • 111
senz
  • 79
  • 3
  • 11

1 Answers1

0
String contents = jerry.$("selector").get(0).getHtml();
Node node = jerry.$("selector").get(0);   
String html = node.getHtml() 

node has getHmtl()

senz
  • 79
  • 3
  • 11
  • Hey @senz, is this different from how jQuery is working - i.e. why `html()` is not working for you? If you think this is an issue, please raise the issue on github. – igr Jan 03 '17 at 11:49