SPHttpUtility.HtmlEncode method

Encodes the specified string for use as text between HTML tags, or as an attribute value inside an HTML tag.

Overload list

  Name Description
Public methodStatic member 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.
Public methodStatic member HtmlEncode(Int32) Retrieves the specified integer as a text string to be enclosed in HTML tags, or an attribute value inside an HTML tag.
Public methodStatic member HtmlEncode(String) Encodes the specified string for use as text between HTML tags, or as an attribute value inside an HTML tag.
Public methodStatic member 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.

Top

See also

Reference

SPHttpUtility class

SPHttpUtility members

Microsoft.SharePoint.Utilities namespace