Skip to content
小飞侠
  • 首页
  • 小程序
  • uniapp
  • vue
  • APICloud
  • 其他
菜单

博客

  1. 首页>
  2. 其他>
  3. C# 去除Html标签

C# 去除Html标签

  • Post author:xfxia
  • Post published:2023年10月31日
  • Post category:其他


 public static string ReplaceHtmlTag(string html, int length = 0){
            string strText = Regex.Replace(html, "<[^>]+>", "");
            strText = Regex.Replace(strText, "&[^;]+;", "");

            if (length > 0 && strText.Length > length)
                return strText.Substring(0, length);

            return strText;
 } 



版权声明:本文为fy809178958原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/fy809178958/article/details/84538997

你可能也喜欢

DQL常用语句总结

利用CentOS7搭建缩水版路由器

吉他谱:Kiss the Rain – Sky Guitar Level 2

Android混淆技术综述

病毒分析教程第四话–高级静态逆向分析(下)

putty:network error:Connection refused

node安装详细步骤

IDEA GIT 忽略文件最佳方式

正则表达式在django的urls中的用法

SpringBoot启动参数配置

https://www.52pojie.cn/thread-688820-1-1.html

Windows下OpenLDAP服务搭建

错误:org.hibernate.exception.GenericJDBCException

STM32F4+FreeRTOS+FATFS+LWIP工程,实现FTP服务器功能

Element-ui 的全局引入和按需引入

Bug日记-webstorm运行yarn 命令报错

计算机网络知识点——概述、信道复用、数据链路层、网络层

端口被占用?两步解决端口占用问题

数组的超详细讲解

被谷歌控制的 Android 不是好 Android?

目录

  • APICloud (3)
  • golang (228)
  • java (8,236)
  • linux (4,002)
  • mysql (2,800)
  • php (1,070)
  • python (5,439)
  • solidity (25)
  • uniapp (235)
  • vue (2,463)
  • 其他 (88,233)
  • 小程序 (801)

文章归档

  • 2023年十二月 (1872)
  • 2023年十一月 (477)
  • 2023年十月 (17371)
  • 2023年九月 (44974)
  • 2023年八月 (26399)
  • 2023年七月 (14793)
  • 2023年六月 (1)
  • 2023年五月 (2186)
  • 2023年四月 (3838)
  • 2023年三月 (1544)
  • 2023年二月 (3)
  • 2023年一月 (4)
  • 2022年十二月 (3)
  • 2022年十一月 (36)
  • 2022年十月 (16)
  • 2022年九月 (8)
  • 2021年九月 (1)
  • 2020年九月 (6)
  • 2020年八月 (5)

标签

Aave (1) cosmos (6) defi (255) flag (27) gitee (1) github (1) golang (234) java (8234) linux命令 (82) List (1) map (1115) mysql (3093) npm (237) tendermint (6) uuid (43) vant (64) vmware (270) 区块链 (63) 合约 (37) 小程序版本更新 (3)
  • 首页
  • 小程序
  • uniapp
  • vue
  • APICloud
  • 其他
Copyright xfxia.com 鲁ICP备19024253号-2
关闭菜单