2009/9/15 MoYo <m...@indepnet.net> > MoYo a écrit : > > Denis Linvinus a écrit : > > > >> i found problem with html_clean function > >> > >> when used tag <style> inside <body> then text before </style> are drops > >> > >> example: > >> <body> > >> some text > >> <style>some style </style> > >> another text > >> </body> > >> > >> result after html_clean just: > >> another text > >> > >> > > Hi, > > > > I just test your patch but it do not correct the problem for me. > > Something is missing ? > no nothing missing. really strange because this regexp should work global '@<style[^>]*?>.*?</style[^>]*?>@si', but probably better '@<[\s]*?style[^>]*?>.*?<[\s]*?/[\s]*?style[^>]*?>@si', or something like this.
> > > > > Delete "style" in preg_replace will put style tags in standard case. > Maybe the good solution ? > if we do that, then style text (text inside style tag) will be as email text, this will looks as garbage. > > regards > > Julien > > > _______________________________________________ > Glpi-dev mailing list > Glpi-dev@gna.org > https://mail.gna.org/listinfo/glpi-dev >
_______________________________________________ Glpi-dev mailing list Glpi-dev@gna.org https://mail.gna.org/listinfo/glpi-dev