// 除去所有在html元素中标记
    using System.Text.RegularExpressions;

    public static string striphtml(string strhtml)
    {
        string stroutput = strhtml;
        Regex regex = new Regex(@"<[^>]+>|</[^>]+>");

        stroutput = regex.Replace(stroutput, "");
        return stroutput;
    }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-29
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2021-10-18
猜你喜欢
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
  • 2021-08-23
相关资源
相似解决方案