This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
FUNCTION stripHTML(strHTML) | |
Dim objRegExp, strOutput, tempStr | |
Set objRegExp = New Regexp | |
objRegExp.IgnoreCase = True | |
objRegExp.Global = True | |
objRegExp.Pattern = "<(.|n)+?>" | |
'Replace all HTML tag matches with the empty string | |
strOutput = objRegExp.Replace(strHTML, "") | |
'Replace all < and > with < and > |