去掉代码中自动产生的 ​

页面产生换行空格,自动产生​ 

代码中用正则表达式匹配​  ,并替换​ 

System.Text.RegularExpressions.Regex r = new System.Text.RegularExpressions.Regex("u200B");
r.Replace(currentTop.Name, " ");

原文地址:https://www.cnblogs.com/AlexLeeLi/p/12855947.html