If you want the HTML of the element itself, you can use
webElement.getAttribute("outerHTML");
It will return the HTML of the element itself plus all the children elements. I'm not sure if that's exactly what you want. I don't think there is a way to just get the HTML of the selected element only.