System.Web.UI.WebControls.ListItemControlBuilder.HtmlDecodeLiterals Method

Determines whether HTML entities in the text associated with the System.Web.UI.WebControls.ListItem are converted to their equivalent characters when the text is parsed.

Syntax

public override bool HtmlDecodeLiterals ()

Returns

true for all cases.

Remarks

The ListItemControlBuilder.HtmlDecodeLiterals method is used to determine whether HTML entities in the text associated with the System.Web.UI.WebControls.ListItem are converted to their equivalent characters when the text is parsed. This method overrides the inherited implementation of the System.Web.UI.ControlBuilder.HtmlDecodeLiterals method to always return true. This indicates that HTML entities in the text associated with the System.Web.UI.WebControls.ListItem control are always automatically converted to their equivalent, plain text characters.

Note:

The text associated with the System.Web.UI.WebControls.ListItem is rendered as an attribute of the <option> HTML element. When the attribute is rendered on the client, special characters are automatically converted to their equivalent HTML entity. For example, the less than character (<) is converted to &lt;. When the attribute is parsed, HTML entities are automatically converted back to their equivalent, plain text characters.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0