ASP simple strip_tags function

/ Published in: ASP
Save to your folder(s)

A simple strip tags function, equivalent to PHP function.

Copy this code and paste it in your HTML
  1. function strip_tags(strHTML)
  2. dim regEx
  3. Set regEx = New RegExp
  4. With regEx
  5. .Pattern = "<(.|\n)+?>"
  6. .IgnoreCase = true
  7. .Global = true
  8. End With
  9. strip_tags = regEx.replace(strHTML, "")
  10. end function


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.