///<summary>
///Replace special characters in html
///</summary>
///<paramname="theString">text that needs to be replaced. </param>
///<returns> replaced text. </returns>
public static string HtmlEncode(string theString)
{
theString=(">",">");
theString=("<","<");
theString=(" "," ");
theString=("\"",""");
theString = ("\'", "'");
theString=("\n","<br/>");
return theString;
}
///<summary>
///Restore special characters in html
///</summary>
///<paramname="theString">Texts that need to be restored. </param>
///<returns>Restore good text. </returns>
public static string HtmlDiscode(string theString)
{
theString=(">",">");
theString=("<","<");
theString=(" "," ");
theString=(""","\"");
theString = ("'", "\'");
theString=("<br/>","\n");
return theString;
}