Strip out the Html tags from a .txt file

M

meeraguna

We send out a .txt file to our cilent. The text file contains some
html tags. Our cilent doesn't want those html tags in the data. How can
we strip out the html tags from the text. Is there any tool available
to do it. When I googled, i got tools to strip out the html tags from
html files. But I couldn't find one for a .txt file.

Thanks
 
D

Dan Freeman

The only difference between HTML files and TXT files is the filename. Rename
*.txt to *.html and they're exactly the same file.

Dan
 
J

JoAnn Paules [MVP]

If you are talking about <BODY>, etc, I'd use Find and Replace. I'd replace
them with nothing at all. If you search for the < character, you'll be able
to make sure that you found everything. (Or most of it - it's been several
years since I've hand-coded an HTML file.)

--

JoAnn Paules
MVP Microsoft [Publisher]

~~~~~
How to ask a question
http://support.microsoft.com/KB/555375
 

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