Compartilhar via


WriteHtmlEncodePreserveSpacesWithQuote Method

The WriteHtmlEncodePreserveSpacesWithQuote method of the SPEncode class encodes the specified string so that characters in embedded HTML tags are displayed as text in the browser and writes the string to the HTTP output content stream, but preserves multiple spaces within the string and surrounds the string with quotation marks.

Parameters

response   The System.HttpResponse object for the current HTTP request.

str   The string to encode.

quoteChar   A System.Char object that specifies the character to use for quotation marks.

Remarks

The WriteHtmlEncodePreserveSpaces method converts characters that can be confused with HTML tags to entities. For example, "<" is converted to "&lt;".

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security