Uiinfrastructure API Docs  
 

PTConstruct.AddHTMLEncodedStringToNestedElement Method 

Call this method to insert an HTML string into an HTMLElement object nested within this construct. Any existing HTML nested within the specified container element will be preserved.

This will HTMLEncode the string, and therefore should not be used for localized strings, which should be safe.

public virtual void AddHTMLEncodedStringToNestedElement(
   ElementName enContainer,
   string s
);

Parameters

enContainer
Pass an ElementName object specifying an HTMLElement object nested within this construct. The HTML string passed to this method will be appended to any HTML existing within this element. If no HTMLElement object having the specified ElementName can be found, an Exception will be thrown.

s
Pass an HTML string. This html will be appended to any html existing within the container HTMLElement object specified by the enContainer parameter.

See Also

PTConstruct Class | com.plumtree.xpshared.htmlconstructs Namespace