Guest User

Untitled

a guest
Oct 28th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 0.70 KB | None | 0 0
  1.        arysplit = Split(strHTML, "<")
  2.  
  3.         'Assuming strHTML is nonempty, we want to start iterating
  4.         'from the 2nd array postition
  5.         If Len(arysplit(0)) > 0 Then j = 1 Else j = 0
  6.  
  7.         'Loop through each instance of the array
  8.         For i = j To UBound(arysplit)
  9.             'Do we find a matching > sign?
  10.             If InStr(arysplit(i), ">") Then
  11.                 'If so, snip out all the text between the start of the string
  12.                 'and the > sign
  13.                 arysplit(i) = Mid(arysplit(i), InStr(arysplit(i), ">") + 1)
  14.             Else
  15.                 'Ah, the < was was nonmatching
  16.                 arysplit(i) = "<" & arysplit(i)
  17.             End If
  18.         Next
Add Comment
Please, Sign In to add comment