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.
WebUtility::HtmlEncode Method
.NET Framework (current version)
Converts a string to an HTML-encoded string.
Assembly: System (in System.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | HtmlEncode(String^) | Converts a string to an HTML-encoded string. |
![]() ![]() | HtmlEncode(String^, TextWriter^) | Converts a string into an HTML-encoded string, and returns the output as a TextWriter stream of output. |
Show:

