ListItemControlBuilder.HtmlDecodeLiterals Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether HTML entities in the text associated with the ListItem are converted to their equivalent characters when the text is parsed.
public:
override bool HtmlDecodeLiterals();
public override bool HtmlDecodeLiterals ();
override this.HtmlDecodeLiterals : unit -> bool
Public Overrides Function HtmlDecodeLiterals () As 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.
Nota
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 <
. When the attribute is parsed, HTML entities are automatically converted back to their equivalent, plain text characters.
Producto | Versiones |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Comentarios de .NET
.NET es un proyecto de código abierto. Seleccione un vínculo para proporcionar comentarios: