zoukankan      html  css  js  c++  java
  • 正则去掉 html标签

    var htmlStr='<p class="cjk" style="margin-bottom: 0cm; line-height: 16px;">关于融托优选<font face="Calibri, sans-serif"><span>APP</span></font>正式发布的通知!</p><p class="cjk" style="margin-bottom: 0cm; line-height: 16px;"><br/></p><p class="cjk" style="margin-bottom: 0cm; line-height: 16px;">尊敬的用户:</p><p class="cjk" style="margin-bottom: 0cm; line-height: 16px;"><br/></p><p class="cjk" style="margin-bottom: 0cm; text-indent: 0.74cm; line-height: 16px;">融托优选<font face="Calibri, sans-serif"><span>APP</span></font>于<font face="Calibri, sans-serif"><span>2019</span></font>年<font face="Calibri, sans-serif"><span>1</span></font>月<font face="Calibri, sans-serif"><span>12</span></font>日正式上线发布,欢迎各位下载安装。</p><p class="cjk" style="margin-bottom: 0cm; text-indent: 0.74cm; line-height: 16px;"><br/></p><p class="cjk" style="margin-bottom: 0cm; text-indent: 0.74cm; line-height: 16px;">融托优选,是一款综合类的第三方入住电子商务平台,集购物、旅游、娱乐、金融理财于一身,平台致力于帮用户排除不好的产品,让用户更轻松的选择商品;平台会对入住的第三方产品进行审核,符合标准的才允许上线。</p><p class="cjk" style="margin-bottom: 0cm; text-indent: 0.74cm; line-height: 16px;"><br/></p><p class="cjk" style="margin-bottom: 0cm; text-indent: 0.74cm; line-height: 16px;">秉承着让用户选择商品变轻松的原则,在产品类型、商品质量、用户体验等各个环节严格把控,力求能够帮助用户更便捷的提高生活品质。</p><p class="cjk" style="margin-bottom: 0cm; text-indent: 0.74cm; line-height: 16px;"><br/></p><p class="cjk" style="margin-bottom: 0cm; text-indent: 0.74cm; line-height: 16px;"><br/></p><p class="cjk" style="margin-bottom: 0cm; text-indent: 0.74cm; line-height: 16px;"><span>详情请咨询</span><font face="Calibri, sans-serif"><span><span>400-809-1991</span></span></font><span>,网址:</span><font face="Calibri, sans-serif"><span><font color="#0000ff"><u><a href="http://www.xiantaobx.com./"><span>www.xiantaobx.com.</span></a></u></font></span></font></p><p class="cjk" style="margin-bottom: 0cm; text-indent: 0.74cm; line-height: 16px;"><br/></p><p class="cjk" style="margin-bottom: 0cm; text-indent: 0.74cm; line-height: 16px;"></p><p class="cjk" style="margin-bottom: 0cm; text-indent: 0.74cm; line-height: 16px;">融托优选运营团队</p><p class="cjk" style="margin-bottom: 0cm; text-indent: 0.74cm; line-height: 16px;"><font face="Calibri, sans-serif"><span>2019</span></font>年<font face="Calibri, sans-serif"><span>1</span></font>月<font face="Calibri, sans-serif"><span>12</span></font>日</p><div><br/></div>';
                var stringtemp =htmlStr.replace(/<[^>]+>/g, "");
                console.log(htmlStr);
                console.log(stringtemp);
    replace(/<[^>]+>/g, "")
  • 相关阅读:
    页面表单里的图片上传ENCTYPE="multipart/form-data"
    OSGI
    httpClient使用中报错org.apache.commons.httpclient.HttpMethodBase
    DNSPod--国内最早提供免费智能DNS产品的网站,致力于为各类网站提供高质量的多线智能DNS免费解析
    spring security 一个能够为基于Spring的企业应用系统提供声明式的安全访问控制解决方案的安全框架
    Unable to parse request org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. null
    swfupload 上传报 security error # 2049 (security) 安全错误问题
    如何强制指定输入的参数必须为数字
    弹性盒子模型子元素垂直和水平居中
    Git常见错误处理
  • 原文地址:https://www.cnblogs.com/gaidalou/p/10276677.html
Copyright © 2011-2022 走看看