Uiinfrastructure API Docs  
 

HTMLElement.AddInnerHTMLString Method 

Call this method to append an additional HTML String to be displayed within this HTML element. For example, if this is a <body> element, and you append the "<img>" String, and then you append the "<a>" String, the body element will display something like: "<body><img><a></body>"

Not all HTML elements allow you to append inner HTML Strings. Such elements will throw an exception if you attempt to do this.

The String appended is not validated. You are free to append garbage. This String will not be HTMLEncoded, therefore this method will be faster than addInnerHTMLEncodedString(). All localized strings should be safe and should therefore use this method. If a string contains some text that should be encoded, and some that should not, it should be manually encoded and this method should be used instead of addInnerHTMLEncodedString().

public virtual void AddInnerHTMLString(
   string s
);

Parameters

s
Pass a String representation of a valid HTML element.

See Also

HTMLElement Class | com.plumtree.xpshared.htmlelements Namespace