Couldn't you also do this internally with a function using RegExp:

private function cleanHTML(str:String):String
{
   var pattern:RegExp = /<TEXTFORMAT.*?>/g;
   var str:String = str.replace(pattern, ""); 
   pattern = /<FONT.*?>/g;
   str = str.replace(pattern, ""); 
   pattern = /<\/FONT.*?>/g;
   str = str.replace(pattern, ""); 
   pattern = /<\/TEXTFORMAT.*?>/g;
   str = str.replace(pattern, ""); 
   return str;
}

- michael

--- In [email protected], "Luís Gustavo Sanabio"
<[EMAIL PROTECTED]> wrote:
>
> Thanks!!
> 
> 2006/8/8, Stefan Schmalhaus <[EMAIL PROTECTED]>:
> >
> > --- In [email protected], "Luís Gustavo Sanabio"
> > <sanabio@> wrote:
> > >
> > > Hi Stefan..
> > > Do you have a function on PHP to clean this tags?
> > > Can you send me?
> >
> > ----------- Begin PHP Code --------------------------
> >
> > function cleanupFlashHTML($string) {
> > $newstring = eregi_replace("<TEXTFORMAT[^>.]*>", "", $string);
> > $newstring = eregi_replace("</TEXTFORMAT[^>.]*>", "", $newstring);
> > $newstring = eregi_replace("<FONT[^>.]*>", "", $newstring);
> > $newstring = eregi_replace("</FONT[^>.]*>", "", $newstring);
> > return $newstring;
> > }
> >
> > ----------- End PHP Code --------------------------
> >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to