Html Library Help
Update Method (innerHtml)
NamespacesHtmlElementUpdate(String)
Replaces the content of this element with innerHtml
Declaration Syntax
C#Visual BasicVisual C++
public virtual Element Update(
	string innerHtml
)
Public Overridable Function Update ( _
	innerHtml As String _
) As Element
public:
virtual Element^ Update(
	String^ innerHtml
)
Parameters
innerHtml (String)
The content to set as the inner html of this element.
Return Value
This element with it's content updated to the specified html.
Examples
CopyC#
string expected = @"<span>Hello World</span>";
string actual = new Element("span").Update("Hello World").ToString();
Assert.AreEqual(expected, actual);

Assembly: Html (Module: Html) Version: 1.0.0.2 (1.0.0.2)