Helper.cs 489 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. namespace CZKJ.GBRS2.WebMVC.Helper
  6. {
  7. public class Helper
  8. {
  9. /// <summary>
  10. /// 清除Html标签
  11. /// </summary>
  12. /// <param name="HTMLStr"></param>
  13. /// <returns></returns>
  14. public static string ParseTags(string HTMLStr)
  15. {
  16. return System.Text.RegularExpressions.Regex.Replace(HTMLStr, "<[^>]*>", "");
  17. }
  18. }
  19. }