2010-03-23

[code snippet]清除html tag並清除多餘的空白

//清除Html Tag
string stripped = Regex.Replace(content, @"<(.|\n)*?>", string.Empty);

//清除多餘的空白
Regex r = new Regex(@"\s+");
stripped = r.Replace(stripped,@" ");

沒有留言:

windows 11 不使用微軟帳號登入

試過"斷網路", 試過"用無效的email登入失敗" 最後還是改registry最好用...  在安裝畫面中, 按下 Shift+F10開啟命令提示字元視窗 然後輸入regedit 切換到 HKEY_LOCAL_MACHINE\Softw...