ASP - 정규식을 이용한 html 태그 제거 함수
해외 사이트에서 가져온 html 태그 제거 함수입니다.
출처: http://snippets.dzone.com
Function stripTags(HTMLstring) Set RegularExpressionObject = New RegExp With RegularExpressionObject .Pattern = "<[^>]+>" .IgnoreCase = True .Global = True End With stripTags = RegularExpressionObject.Replace(HTMLstring, "") Set RegularExpressionObject = nothing End Function | | |
|
|