Sunday, 27 August 2017
Thursday, 10 August 2017
To Replace Special Character to HTML tags using C# function:
To Replace Special Character to HTML tags using C# function:
public string ReplaceSpecialChars(string str)
{
if (str != null)
{
str = str.Replace("'", "'");
str = str.Replace("<", "<");
str = str.Replace(">", ">");
str = str.Replace(@"\", "\");
}
return str;
}
Subscribe to:
Posts (Atom)