<script>
//替换掉所有的 html标签,得到html标签中的内容
var content = "<p><font color=#000000>没有标签了</font></p>"; var temp = content.replace(/<\/?.+?>/g, "");
var result = temp.replace(/ /g, "");//result为得到后的内容
alert(result);
</script>

最新文章

  1. Google Protocol Buffer开发环境搭建注意事项
  2. C#----XML操作小结
  3. (转载)Apache下error.log文件太大的处理
  4. Spring AOP使用整理:自动代理以及AOP命令空间
  5. 【mysql】MySQL存储IP地址
  6. linux挂载详解
  7. Python学习(2)
  8. java开发中的23中设计模式
  9. Makefile与shell脚本区别
  10. HDU2159 研发费用背包
  11. nova创建虚拟机源码分析系列之三 PasteDeploy
  12. 带吸附效果的ViewPager(一)
  13. python全栈开发 * 10知识点汇总 * 180612
  14. 安装Visual Studio 2013以及简单使用
  15. 2018.10.31 vijos1052贾老二算算术(高斯消元)
  16. 高通Audio中ASOC的machine驱动(一)
  17. luogu2679 [NOIp2015]子串 (dp)
  18. [Codeforces Gym] 100162B Circle of Stones
  19. smtpclient 邮件发送测试
  20. 一个好玩的CTF题

热门文章

  1. MySQL索引结构之Hash索引、full-text全文索引(面)
  2. com.aliyun.oss.ClientException: Connection error due to: Connection pool shut down
  3. JVM中的常量池详解
  4. JWT(JSON Web Token)入门
  5. [原题复现+审计][SUCTF 2019] WEB CheckIn(上传绕过、.user.ini)
  6. ci爬坑
  7. tomcat安装证书https
  8. ABBYY FineReader 15新增编辑页面布局功能
  9. Sonar检测Math.abs(new Random().nextInt()) “Use the original value instead”
  10. Thread.start() ,它是怎么让线程启动的呢?