Gets or sets the inner HTML contents of the current HTML element.
A string containing the inner HTML data enclosed between opening and closing tags of the current element, or an empty string if there is no content in the current HTML element. It's never a null reference (Nothing in Visual Basic).
If the current element is not an HTML tag but rather a block of plain text, InnerHtml and OuterHtml properties will return the same value (the plain text contents).
| Exception Type | Condition |
|---|---|
| MailBeeInvalidArgumentException | value is a null reference (Nothing in Visual Basic). |
The example is available in Element topic.
Element Class | MailBee.Html Namespace | OuterHtml