Export (0) Print
Expand All

HttpUtility::HtmlEncode Method (Object)

Converts an object's string representation into an HTML-encoded string, and returns the encoded string.

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)

public:
static String^ HtmlEncode(
	Object^ value
)

Parameters

value
Type: System::Object

An object.

Return Value

Type: System::String
An encoded string.

To encode or decode values outside of a web application, use the WebUtility class.

.NET Framework

Supported in: 4.6, 4.5, 4
Show:
© 2015 Microsoft