public static HtmlEncode ( string text ) : String | ||
text | string | Text value to encode. |
return | String |
public static String HtmlEncode(string text)
{
String retVal = HttpUtility.UrlEncode(text);
retVal = retVal.Replace("+", "%20");
return retVal;
}