The Encoder type exposes the following members.
Methods
Name | Description | |
---|---|---|
CssEncode |
Encodes the specified string for use in Cascading Style Sheet (CSS) attributes. The return value from this function is expected to be
used in building an attribute string. CSS string attributes should be quoted values.
| |
HtmlAttributeEncode |
Encodes an input string for use in an HTML attribute.
| |
HtmlEncode(String) |
Encodes input strings for use in HTML.
| |
HtmlEncode(String, Boolean) |
Encodes input strings for use in HTML.
| |
HtmlFormUrlEncode(String) |
Encodes input strings for use in application/x-www-form-urlencoded form submissions.
| |
HtmlFormUrlEncode(String, Int32) |
Encodes input strings for use in application/x-www-form-urlencoded form submissions.
| |
HtmlFormUrlEncode(String, Encoding) |
Encodes input strings for use in application/x-www-form-urlencoded form submissions.
| |
JavaScriptEncode(String) |
Encodes input strings for use in JavaScript.
| |
JavaScriptEncode(String, Boolean) |
Encodes input strings for use in JavaScript.
| |
LdapDistinguishedNameEncode(String) |
Encodes input strings for use as a value in Lightweight Directory Access Protocol (LDAP) DNs.
| |
LdapDistinguishedNameEncode(String, Boolean, Boolean) |
Encodes input strings for use as a value in Lightweight Directory Access Protocol (LDAP) DNs.
| |
LdapEncode | Obsolete.
Encodes input strings to be used as a value in Lightweight Directory Access Protocol (LDAP) search queries.
| |
LdapFilterEncode |
Encodes input strings for use as a value in Lightweight Directory Access Protocol (LDAP) filter queries.
| |
UrlEncode(String) |
Encodes input strings for use in universal resource locators (URLs).
| |
UrlEncode(String, Int32) |
Encodes input strings for use in universal resource locators (URLs).
| |
UrlEncode(String, Encoding) |
Encodes input strings for use in universal resource locators (URLs).
| |
UrlPathEncode |
URL-encodes the path section of a URL string and returns the encoded string.
| |
VisualBasicScriptEncode |
Encodes input strings for use in Visual Basic Script.
| |
XmlAttributeEncode |
Encodes input strings for use in XML attributes.
| |
XmlEncode |
Encodes input strings for use in XML.
|