Re: Use lxml.html.clean.Cleaner for safe HTML transforms?
Tom Gross <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[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. > > 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