Replaces the content of this element with innerHtml
- innerHtml (String)
- The content to set as the inner html of this element.
This element with it's content updated to the specified html.
string expected = @"<span>Hello World</span>"; string actual = new Element("span").Update("Hello World").ToString(); Assert.AreEqual(expected, actual);