Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HttpServerUtility.HtmlEncode Method

Encodes a string to be displayed in a browser.

Name Description
HttpServerUtility.HtmlEncode (String) HTML-encodes a string and returns the encoded string.
HttpServerUtility.HtmlEncode (String, TextWriter) HTML-encodes a string and sends the resulting output to a TextWriter output stream.

Community Additions

© 2015 Microsoft