by Andrew Silvernail (2 Submissions)
Category: String Manipulation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Fri 16th November 2001
Date Added: Mon 8th February 2021
Rating:
(1 Votes)
Parses out html tags from a string.
API Declarations
'you need a rich text box named rtb1
'strurl is the desired string to be parsed
For intloop = 1 To Len(strurl)
If Mid(strurl, intloop, 1) = ">" Then 'continue until "<"
For intloop2 = intloop To Len(strurl)
If Mid(strurl, intloop2, 1) = "<" Then
If intloop + 1 = intloop2 - 1 Then
Exit For
Else
rtb1.Text = rtb1.Text & Mid(strurl, intloop + 1, (intloop2 - intloop) - 1) 'write to rtb1
Exit For
End If
End If
Next
End If
Next
End Sub