网页学习体会

  • 首页
  • 个人博客
您的位置: 首页  >  IT文章  >  Nice way for strip_tags a like

Nice way for strip_tags a like

分类: IT文章 • 2025-01-05 13:52:37

I found this code works great as the function strip_tags in php to replace html tags from string and I just want to share it with you. Hope it benefits!

System.Text.RegularExpressions.Regex regHtml = new System.Text.RegularExpressions.Regex("<[^>]*>");
string s = regHtml.Replace(InputString,"");

相关推荐

  • Nice way for strip_tags a like
  • 非常详细的 Docker 学习笔记 Firefox over VNC VERSION 0.3 Install vnc, xvfb in order to create a 'fake' display and firefox Setup a password Autostart firefox (might not be the best way, but it does the trick) Multiple images example VERSION 0.1 Will output something like ===> 907ad6c2736f Will output something like ===> 695d7793cbe4 You᾿ll now have two images, 907ad6c2736f with /bar, and 695d7793cbe4 with /oink.
  • leetcode算法刷题(五)——动态规划(三)
  • 邓西百度网盘批量保存检测工具高级用法之分享链接以指定名称保存
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 网页学习体会    备案号:   粤ICP备20002247号