生成一行html

//压缩 一行html

Regex regReplaceBlank = new Regex(">(\\s+)<", RegexOptions.IgnoreCase);
Regex regReplaceLine = new Regex("\\s\\n", RegexOptions.IgnoreCase);
getContent = regReplaceBlank.Replace(regReplaceLine.Replace(getContent, ""), "><");

posted @ 2015-08-19 15:31  DODUI  阅读(327)  评论(0编辑  收藏  举报