除去html空格成一行 .net

string tmp=///吧文件读出成string的
 Regex regReplaceBlank = new Regex(">(\\s+)<", RegexOptions.IgnoreCase);
        Regex regReplaceLine 
= new Regex("\\s\\n", RegexOptions.IgnoreCase);
        tmp 
= regReplaceBlank.Replace(regReplaceLine.Replace(tmp, ""), "><");
原文地址:https://www.cnblogs.com/hun_dan/p/1777094.html