Function stripHTML(strHTML)
Dim objRegExp, strOutput
Set objRegExp = New Regexp
objRegExp.IgnoreCase = True
objRegExp.Global = True
objRegExp.Pattern = "<.+?>"
  'Replace all HTML tag matches with the empty string
strOutput = objRegExp.Replace(strHTML, "")
  'Replace all < and > with < and >
strOutput = Replace(strOutput, "<", "<")
strOutput = Replace(strOutput, ">", ">")
stripHTML = strOutput 'Return the value of strOutput
Set objRegExp = Nothing
End Function

相关文章:

  • 2021-09-07
  • 2021-12-04
  • 2021-09-07
  • 2021-11-17
  • 2021-11-30
  • 2021-12-08
  • 2021-11-12
  • 2021-11-06
猜你喜欢
  • 2021-11-30
  • 2021-12-04
  • 2021-12-04
  • 2021-11-06
  • 2021-12-04
  • 2021-12-14
  • 2021-12-06
  • 2021-12-04
相关资源
相似解决方案