SPHttpUtility members
Provides access to methods used to encode and decode strings during the processing of Web requests.
The SPHttpUtility type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SPHttpUtility | Initializes a new instance of the SPHttpUtility class. |
Top
Methods
Name | Description | |
---|---|---|
AddQuote(String) | Encloses the specified string in quotation marks. | |
AddQuote(String, Char) | Encloses the specified string in quotation marks using the specified character. | |
AddQuote(String, TextWriter) | Encloses the specified string in quotation marks and appends the output to the specified output stream. | |
AddQuote(String, Char, TextWriter) | Encloses the specified string in quotation marks using the specified character and appends it to the specified output stream. | |
ConvertSimpleHtmlToText | Converts an HTML string from a Microsoft SharePoint Foundation rich text field to plain text. | |
EcmaScriptStringLiteralEncode(String) | Returns an encoded version of the specified JavaScript. | |
EcmaScriptStringLiteralEncode(String, TextWriter) | Returns an encoded version of the specified JavaScript and appends it to the specified output stream. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
HtmlDecode(String) | Retrieves a decoded version of the specified encoded HTML string. | |
HtmlDecode(String, Boolean) | Decodes a string that was encoded by the HtmlEncode(String) method. | |
HtmlEncode(Guid) | Encodes the string with the specified GUID for use as text between HTML tags, or as an attribute value inside an HTML tag. | |
HtmlEncode(Int32) | Retrieves the specified integer as a text string to be enclosed in HTML tags, or an attribute value inside an HTML tag. | |
HtmlEncode(String) | Encodes the specified string for use as text between HTML tags, or as an attribute value inside an HTML tag. | |
HtmlEncode(String, TextWriter) | Encodes the specified string as a text string to be enclosed in HTML tags, or as an attribute value inside an HTML tag, and appends it to the specified output stream. | |
HtmlEncodeAllowSimpleTextFormatting(String) | Encodes the specified string for use as text between HTML tags, preserving spaces in the original string and allowing simple text formatting. | |
HtmlEncodeAllowSimpleTextFormatting(String, TextWriter) | Encodes the specified string for use as text between HTML tags, preserving spaces in the original string and allowing simple text formatting, and appends it to the specified output stream. | |
HtmlUrlAttributeEncode(String) | Encodes the specified string for use as an attribute value for URL type attributes, such as the href attribute of an anchor tag or the src attribute of an image tag. | |
HtmlUrlAttributeEncode(String, TextWriter) | Encodes the specified string for use as an attribute value for URL type attributes, such as the href attribute of an anchor tag or the src attribute of an image tag, and appends it to the specified output stream. | |
MemberwiseClone | (Inherited from Object.) | |
NoEncode(Object) | Retrieves the specified string object as an unencoded string. | |
NoEncode(String) | Retrieves the specified string as an unencoded string. | |
NoEncode(Object, TextWriter) | Retrieves the specified string object as an unencoded string, and appends it to the specified output stream. | |
ToString | (Inherited from Object.) | |
UrlEncodeFilenameForHttpHeader | Encodes a file name for use in an HTTP header. | |
UrlKeyValueDecode | Decodes the specified encoded URL query string key or value. | |
UrlKeyValueEncode(Guid) | Encodes a GUID for use in a URL query string. | |
UrlKeyValueEncode(Int32) | Encodes an integer key or value for use in a URL query string. | |
UrlKeyValueEncode(String) | Encodes a string for use in a URL query string. | |
UrlKeyValueEncode(String, TextWriter) | Encodes the specified URL query string key or value, and appends it to the specified output stream. | |
UrlKeyValueEncode(String, String) | Encodes a string key and value for use in a URL query string. | |
UrlKeyValueEncode(String, String, TextWriter) | Encodes a string key and value for use in a URL query string, and then appends it to the specified output stream. | |
UrlPathDecode | Decodes the specified encoded path part of a URL. | |
UrlPathEncode(String, Boolean) | Encodes the specified path part of a URL for HTTP transmission. | |
UrlPathEncode(String, Boolean, Boolean) | Encodes the specified path part of a URL for HTTP transmission. | |
UrlPathEncode(String, Boolean, TextWriter) | Encodes the specified path part of a URL for HTTP transmission, and appends it to the specified output stream. | |
UrlPathEncode(String, Boolean, Boolean, Boolean) | Encodes path portion of an URL for reliable HTTP transmission from the Web server to a client. | |
UrlPathEncode(String, Boolean, Boolean, TextWriter) | Encodes the specified path part of a URL for HTTP transmission, and appends it to the specified output stream. | |
WriteAddQuote(String, Page) | Add a quote character quote around a given string, send it to TextWriter output stream. This function is a wrapper for AddQuote that takes a Page instead of a TextWriter for an argument. | |
WriteAddQuote(String, Char, Page) | Add a quote character quote around a given string, send it to TextWriter output stream. This function is a wrapper for AddQuote that takes a Page instead of a TextWriter for an argument. | |
WriteEcmaScriptStringLiteralEncode | ||
WriteHtmlEncode | ||
WriteHtmlEncodeAllowSimpleTextFormatting | ||
WriteHtmlUrlAttributeEncode | ||
WriteNoEncode | ||
WriteUrlKeyValueEncode(String, Page) | ||
WriteUrlKeyValueEncode(String, String, Page) | ||
WriteUrlPathEncode(String, Boolean, Page) | ||
WriteUrlPathEncode(String, Boolean, Boolean, Page) |
Top