Use HttpUtility.HtmlEncode to encode the input string