SPHttpUtility.HtmlEncode Method

Include Protected Members
Include Inherited Members

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