Re: Use lxml.html.clean.Cleaner for safe HTML transforms?
Roel Bruggink <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <CAO5yuCVtL7QW-XEdq=RvXDA41a3Mw84wOYa+9eN4SCpa132rqQ@mail.gmail.com> |
The security team might have a say in this? On Wed, Aug 6, 2014 at 4:10 PM, Timo Stollenwerk <tisto-z4DKO/[email protected]> wrote: > Am 06.08.2014 um 15:43 schrieb Tom Gross: > > Hi Plone developers > > > > I did a little experiment using lxml cleaner for safe HTML > > transformation in PortalTransforms [1]. It looks very promising (fast > > and clean!) so far but some tests are failing [2]. For me most of the > > test fixtures seem trivial to me but I wanted to make sure that this is > > acceptable and this is what we want in Plone 5 before I go on fixing > them. > > That's awesome! The last time I checked the code was using regular > expressions, which is aweful. Though, we have to check if lxml works > well with really broken HTML code I guess. > > We might need a PLIP (we can discuss this at the next framework team > meeting). Though, I'm definitely in favor of moving stuff to lxml! > > Cheers, > Timo > > > ------------------------------------------------------------------------------ > Infragistics Professional > Build stunning WinForms apps today! > Reboot your WinForms applications with our WinForms controls. > Build a bridge from your legacy apps to the future. > > http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk > _______________________________________________ > Plone-developers mailing list > Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/plone-developers > -- Roel Bruggink http://www.fourdigits.nl/mensen/roel-bruggink Four Digits BV http://www.fourdigits.nl tel: +31(0)26 4422700 ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ Plone-developers mailing list Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/plone-developers