What can I call to "sterilize" text?

Started by JFlame, February 26, 2010, 12:56:43 AM

Previous topic - Next topic

JFlame

I have a field that is taking user input as text.  What function can I call in order to remove all HTML tags from this input? 

For example, if the user for some reason enters "<tr><td>A cell!</td></tr>" I'd like it to only save the words, "A cell!".

www.YamahaSuperTenere.com - Yamaha Super Tenere Motorcycle Forum

Kays


If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

JFlame

www.YamahaSuperTenere.com - Yamaha Super Tenere Motorcycle Forum

Advertisement: