The System.Web.HttpUtility class contains encoding and decoding utility methods for use with HTML-encode strings. The Uri class also contains methods and properties that can be used for similar purposes.
Requirements
Namespace: System.Net Assembly: System (in System.dll) Assembly Versions: 4.0.0.0