|
|||||||||||
|
Antigen forwarded attachment
From: <Antigen_MISS(at)securityfocus.com>
Date: Fri Jun 20 2003 - 04:06:52 EDT
<<Entire Message.eml>> attached mail follows:
Yes, replace all of the unacceptable tags with "", it will work fine.
And for a plus,
strip_tags($Text, "<allowed tag>"); This will only allows the "<allowed tag>". Regards, Mutellip Ablimit INSI mutax@insi.co.jp
-----Original Message-----
Create a list of unacceptable tags in an array (eg applet, embed), loop
through the array and generate a regexpr based on the array, something of
the form:
Do the same for any possible closing tags ie: </(applet)|(embed)> and replace all instances with "". BTW the RegExpr may be wrong, I'm not all that hot on RegExprs, but you get the idea.
regards
> > > I am currently writing a web application that, as a small part of it, > > I would like to know the best way of filtering out undesirable html. I > > However, there is a lot of tags that are acceptable. Another approach > > Are there any functions available (for php) that will take a html page > > Thanks, > > Andrew Beverley > > > > >Received on Fri Jun 20 08:43:04 2003 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:53 EDT |
||||||||||
|
|||||||||||