DTCMS清除 &
2015-12-10 16:52
316 查看
DTcms.Common\Utils.cs
中的
中的 Htmlstring.Replace(" ", ""); 改为
#region 清除HTML标记 public static string DropHTML(string Htmlstring)
中的
Htmlstring.Replace("<", ""); Htmlstring.Replace(">", ""); Htmlstring.Replace("\r\n", ""); Htmlstring.Replace(" ", "");
中的 Htmlstring.Replace(" ", ""); 改为
Htmlstring = Regex.Replace(Htmlstring, @" ", "", RegexOptions.IgnoreCase); Htmlstring = Regex.Replace(Htmlstring, @"&", "", RegexOptions.IgnoreCase); Htmlstring = Regex.Replace(Htmlstring, @"emsp;", "", RegexOptions.IgnoreCase);
相关文章推荐
- Rabin-Karp字符串查找算法
- Express实现前端后端通信上传图片之存储数据库(mysql)傻瓜式教程(二)
- 软件设计度量工具inFusion(二):看懂inFusion度量结果
- 大数据 与 云计算 的关系
- Obhective-C_OC中的方法
- java解析XML (JDOM & DOM4J,X-stream)(二)
- 算法开始之路-栈和列的应用
- BlueTooth: 蓝牙协议栈实现模式分析
- My97DatePicker日历控件日报、每周和每月的选择
- 【SSH快速进阶】——Hibernate一对一映射(one-to-one)——主键关联映射
- 采购单入库操作
- watch os 语音输入
- php webp转jpg
- OCJP标准题库试题之————第二次
- Android selector 失效
- shell之cut
- Android的线程和线程池
- Mybatis 教程
- Linux(Centos)之安装Redis及注意事项
- XAML基础(一)