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