HttpUtility.HtmlEncode Method (Object)
.NET Framework (current version)
Converts an object's string representation into an HTML-encoded string, and returns the encoded string.
Assembly: System.Web (in System.Web.dll)
Parameters
- value
-
Type:
System.Object
An object.
To encode or decode values outside of a web application, use the WebUtility class.
.NET Framework
Available since 4.0
Available since 4.0
Show: