1public static string ConvertInput(string inputString)
2{
3string retVal=inputString;
4retVal=retVal.Replace("&","&");
5retVal=retVal.Replace("\"",""");
6retVal=retVal.Replace("'",""");
7retVal=retVal.Replace("<","<");
8retVal=retVal.Replace(">",">");
9retVal=retVal.Replace(" "," ");
10retVal=retVal.Replace(" "," ");
11retVal=retVal.Replace("\t"," ");
12retVal=retVal.Replace("\r\n", "<br/>");
13return retVal;
14}
15
2{
3string retVal=inputString;
4retVal=retVal.Replace("&","&");
5retVal=retVal.Replace("\"",""");
6retVal=retVal.Replace("'",""");
7retVal=retVal.Replace("<","<");
8retVal=retVal.Replace(">",">");
9retVal=retVal.Replace(" "," ");
10retVal=retVal.Replace(" "," ");
11retVal=retVal.Replace("\t"," ");
12retVal=retVal.Replace("\r\n", "<br/>");
13return retVal;
14}
15