[VB.NET] 문자열에서 HTML태그 삭제하기
모듈을 하나 추가하고 아래와같이 작성한후 Imports System.Text.RegularExpressions Module Module1 Function RemoveHtmlTags( input As String ) As String ' 정규식을 사용하여 HTML 태그를 제거. Dim pattern As String = "" Dim plainText As String = Regex.Replace(input, pattern, "") Return plainText End Function End Module 아래와같이 RemoveHtmlTags 함수를 호출하여 사용한다. Dim htmlString As String = "This is sample HTML text." htmlString = RemoveHtmlT..
2023.09.26