Without knowing the context in which you want to strip - security? - it's hard to suggest best method.
What I would do, if possible, is work the other way round. Define a list of HTML tags/attributes that are valid and strip out everthing else.
.02
cLive ;-)
In reply to Re: Removing Javascript
by cLive ;-)
in thread Removing Javascript
by Mur
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |