This documentation is archived and is not being maintained.

ListItemControlBuilder::HtmlDecodeLiterals Method

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

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
virtual bool HtmlDecodeLiterals() override

Return Value

Type: System::Boolean
true for all cases.

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

NoteNote

The text associated with the 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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: