替換文本中的空格和換行

/// <summary>
    
/// 替換文本中的空格和換行
    
/// </summary>
    public static string ReplaceSpace(string str)
    {
        
string s = str;
        s 
= s.Replace(" ""&nbsp;");
        s 
= s.Replace("/n""<BR />");
        
return s;
    }/// <summary>
    
/// 替換文本中的空格和換行
    
/// </summary>
    public static string ReplaceSpace(string str)
    {
        
string s = str;
        s 
= s.Replace(" ""&nbsp;");
        s 
= s.Replace("/n""<BR />");
        
return s;
    }

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章