VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

HTML toText

Sergio P  (1 Submission)   Internet/HTML   Intermediate   Wed 3rd February 2021

This little piece of code will strip all HTML tags from a web page. What your left with is pure text.

I've seen a few approaches, one which took up 500 lines of code. And some guy is selling an HTML stripper for $250. Rediculous.
This is my first post here. I just wanted to share and save someone some time.

Assumes
Just paste it into your form or module and call it. Text1 = HTML2Text(HTMLString1)

Rate HTML toText (4(4 Vote))
HTML toText.bas

HTML toText Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters