Plumtree UI Infrastructure API  
 

HTMLElement.AddInnerHTMLEncodedString 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 be automatically HTMLEncoded for you. This method will be significantly slower than addInnerHTMLString(), so it should only be used for data that really needs to be HTMLEncoded (things entered by users). This method should not be used for localized strings, which should be safe. If a string contains some text that should be encoded, and some that should not, it should be manually encoded and addInnerHTMLString() should be used.

public virtual void AddInnerHTMLEncodedString(
   string s
);

Parameters

s
Pass a String representation of a valid HTML element.

See Also

HTMLElement Class | com.plumtree.xpshared.htmlelements Namespace