public static void RemoveTagOfUrl(ref string strLinkName)
{
strLinkName = strLinkName.ToLower();
int left = strLinkName.IndexOf("<");
int right = strLinkName.IndexOf(">");
if(left !=-1 && right != -1)
{
string strBefore = strLinkName.Substring(0,left);
string strAfter = strLinkName.Substring(left+1);
if(strAfter.IndexOf(">")!=-1)
{
strLinkName = strAfter.Substring(strAfter.IndexOf(">")+1);
strLinkName = strBefore + strLinkName;
RemoveTagOfUrl(ref strLinkName);
}
}
}
移除链接名字中的Html标签
最新推荐文章于 2022-03-31 17:38:06 发布