I have to strip HTML tags out of a line of text

T

Tom

ALL,

I have to strip tags out of a line of text like <bold>..<Body> etc. I have
to delete the carrots as well..


Thanks Much,

Tom
 
S

Stephen Lebans

While there is probably code out ther in VB land to act as an HTML to
Text parser there may be a couple of simpler solutions.

1) Embedd the MS Internet Explorer ActiveX control on a hidden form.
Copy your HTML string to the control then read the control's text
property. To get you started see:
http://www.lebans.com/htmleditor.htm

or

2) Copy the HTML text to the ClipBoard. Then ask the Clipboard for plain
text. You will have to search for VB API clipboard routines as Access
does not expose a ClipBoard object.


--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top