Function LoseScriptTag(ContentStr) Dim ClsTempLoseStr,regEx ClsTempLoseStr = Cstr(ContentStr) Set regEx = New RegExp regEx.Pattern = "(<script){1,}[^<>]*>[^\0]*(<\/script>){1,}" regEx.IgnoreCase = True regEx.Global = True ClsTempLoseStr = regEx.Replace(ClsTempLoseStr,"") LoseScriptTag = ClsTempLoseStr Set regEx = Nothing End Function
|