VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Removes ALL HTML tags out of a string.

by Denis Petrusenko (6 Submissions)
Category: Internet/HTML
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Thu 14th February 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Removes ALL HTML tags out of a string.

Rate Removes ALL HTML tags out of a string.




 Dim kS, kE

 Do While InStr(1, s, "<") > 0
 
  kS = InStr(1, s, "<")
  kE = InStr(1, s, ">")
  
  s = Left(s, kS - 1) & Right(s, Len(s) - kE)
 
 Loop

 KillHTMLTags = s

End Function

Download this snippet    Add to My Saved Code

Removes ALL HTML tags out of a string. Comments

No comments have been posted about Removes ALL HTML tags out of a string.. Why not be the first to post a comment about Removes ALL HTML tags out of a string..

Post your comment

Subject:
Message:
0/1000 characters