htmlGet method

String? htmlGet()

Returns the inner HTML for the first (non-null) element in the selection.

selection.htmlGet(); // "Hello, <i>world</i>!"

This is generally useful only if you know the selection contains exactly one element.

Implementation

String? htmlGet() {
  return node()?.innerHTML;
}