替换文本中的空格和换行

来源:互联网 发布:手机淘宝消息打不开 编辑:程序博客网 时间:2024/05/18 02:52

/// <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;
    }

原创粉丝点击