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!

HTML filter

Status
Not open for further replies.

ksoong

Programmer
Oct 3, 2000
57
CA
does anybody know where I can find some sample code for an HTML filter such that HTML tags are stripped out of a string?

I can't find anything on the web. but it's such a common task that I'm sure it's out there somewhere. thanks

Ken
 
Hi,

I don't quite get what you mean. Perhaps you would like to further explain?

Regards,
Leon If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best :)
 
Why don't you code it yourself? Should be pretty fast to accomplish - you tokenize the string, if a token starts with &quot; you replace it with &quot;<a href=\&quot;&quot; + token + &quot;\&quot;>&quot; + token + &quot;</a>&quot;. Then you reassemble the String (maybe using a StringBuffer...).
Of course you can still optimize a lot...

Good luck anyway!
allow thyself to be the spark that lights the fire
haslo@haslo.ch - www.haslo.ch​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top