Uiinfrastructure API Docs  
 

PTConstruct.ReplaceNestedElementsWithHTMLString Method 

Call this method to set the inner HTML string of a specific element within this construct.

All previous inner html elements and strings will be removed, and replaced with the passed string.

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

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

Parameters

enContainer
Pass an ElementName indicating an HTMLElement nested within this construct. All HTMLElements nested within the HTMLElement indicated by this ElementName will be replaced. ElementName objects are available from the specific PTConstructType used to obtain this construct.

s
Pass an HTML string. This string will be nested within the HTMLElement indicated by the ElementName passed.

See Also

PTConstruct Class | com.plumtree.xpshared.htmlconstructs Namespace