Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change HTML code to plain text file

Status
Not open for further replies.

jennifercheng2008

Programmer
Jul 24, 2008
10
CA
I have following message as following.

I want to remove the HTML tags, only ge the plain text:We're seeking knowledgeable, passionate individuals.Home Depot is the world's largest home improvement retailer.The Home Depot Canada...

<FONT size=3> <P align=left><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>We're seeking knowledgeable, passionate individuals. <BR></P></FONT> <P align=left> Home Depot is the world's largest home improvement retailer.<BR><BR>The Home Depot Canada...

Thanks in advance for your kind advice.
Jennifer
 
You might still take a look at the functions at cflib.org anyway. Many of the authors are much more knowledgeable about regular expressions than your average person. They often catch flaws in what may appear to be a "good" expression. Plus it has a wide user base. So problems or bugs tend to surface and be corrected quickly.

----------------------------------
 
> REReplaceNoCase(str,"<[^>]*>","","ALL");

I mention it because IIRC the stripHTML function used to use that code. So I am assuming it was updated for good reason ;-)

----------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top