This documentation is archived and is not being maintained.

HttpServerUtility.HtmlEncode Method

Encodes a string to be displayed in a browser.

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

  NameDescription
Public method HtmlEncode(String) HTML-encodes a string and returns the encoded string.
Public method HtmlEncode(String, TextWriter) HTML-encodes a string and sends the resulting output to a TextWriter output stream.
Top
Show: