/// <summary>
/// For getting string as Html encoded
/// </summary>
/// <param name="orginalString"></param>
/// <param name="limit"></param>
/// <returns>string</returns>
public static string GetEncodedString(object evelOrginalString)
{
string orginalString = HttpUtility.HtmlEncode(Convert.ToString(evelOrginalString));
return orginalString;
}
/// For getting string as Html encoded
/// </summary>
/// <param name="orginalString"></param>
/// <param name="limit"></param>
/// <returns>string</returns>
public static string GetEncodedString(object evelOrginalString)
{
string orginalString = HttpUtility.HtmlEncode(Convert.ToString(evelOrginalString));
return orginalString;
}
No comments:
Post a Comment