Re: Use lxml.html.clean.Cleaner for safe HTML transforms?
Espen Moe-Nilssen <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[email protected]> |
If it should be of any interest, I moved my lxml view to its own product…. https://www.youtube.com/watch?v=3pETbJLBomU&feature=youtu.be https://github.com/espenmn/medialog.lxml It is still a bit fought, need to fix some things in the settings, so be warned Espen 7. aug. 2014 kl. 13:44 skrev Espen Moe-Nilssen <[email protected]>: > > 7. aug. 2014 kl. 11:50 skrev Tom Gross <[email protected]>: > >> Am 07.08.2014 11:18, schrieb Maurits van Rees: >>> Tom Gross schreef op 06-08-14 15:43: >>>> 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. >>> >>> I was going to say that it looks like this means the configuration that >>> we have now in the html filtering control panel is not used anymore. At >>> least it is not used in the current code on your branch. But from >>> looking at the help of the Cleaner class it looks like you can configure >>> it after all. Maybe not exactly like we do now, but close; possibly >>> even with easier configuration. >>> >>> Do you plan on adding that? >> >> The use of the HTML configuration from the control panel is a must. >> > > You can copy code from here, so you dont have to retype it (search/replace) > (almost finished: ) > https://github.com/espenmn/medialog.mobilethemeTwo/blob/master/medialog/mobilethemeTwo/profiles/default/registry.xml > > line 27++ > https://github.com/espenmn/medialog.mobilethemeTwo/blob/master/medialog/mobilethemeTwo/views.py > > and maybe: > https://github.com/espenmn/medialog.mobilethemeTwo/blob/master/medialog/mobilethemeTwo/interfaces.py > > > PS: I will probably move this part to its own product soon… > > Espen >>> >>> Thanks, if lxml can handle this for us that seems good to me. >>> >> >> >> >> ------------------------------------------------------------------------------ >> 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 > > ------------------------------------------------------------------------------ > 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 ------------------------------------------------------------------------------ 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