Export (0) Print
Expand All

HttpUtility.HtmlEncode Method

Converts a string into an HTML-encoded string.

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member HtmlEncode(Object) Converts an object's string representation into an HTML-encoded string, and returns the encoded string.
Public method Static member HtmlEncode(String) Converts a string to an HTML-encoded string.
Public method Static member HtmlEncode(String, TextWriter) Converts a string into an HTML-encoded string, and returns the output as a TextWriter stream of output.
Top
Show:
© 2014 Microsoft