2 out of 2 rated this helpful - Rate this topic

HttpUtility.HtmlEncode Method

Converts a string into an HTML-encoded string.

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
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.