Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpUtility::HtmlEncode Method (Object^)

.NET Framework (current version)
 

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
Available since 4.0
Return to top
Show:
© 2017 Microsoft