欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

asp.ne去除html的函數(shù)代碼

 更新時(shí)間:2009年05月15日 00:22:34   作者:  
asp.net下去除html標(biāo)簽的函數(shù)。
復(fù)制代碼 代碼如下:

/// <summary>
/// 過濾字符串中的html代碼
/// </summary>
/// <param name="Str"></param>
/// <returns>返回過濾之后的字符串</returns>
public static string LostHTML(string Str)
{
string Re_Str = "";
if (Str != null)
{
if (Str != string.Empty)
{
string Pattern = "<\\/*[^<>]*>";
Re_Str = Regex.Replace(Str, Pattern, "");
}
}
return (Re_Str.Replace("\\r\\n", "")).Replace("\\r", "");
}

相關(guān)文章

最新評(píng)論