Share via


SPHttpUtility.HtmlUrlAttributeEncode method

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.

Overload list

  Name Description
Public methodStatic member 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.
Public methodStatic member 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.

Top

See also

Reference

SPHttpUtility class

SPHttpUtility members

Microsoft.SharePoint.Utilities namespace